Skip to content
This repository has been archived by the owner on Jul 21, 2018. It is now read-only.

Commit

Permalink
fixed Bash variable highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-simon committed Jun 21, 2017
1 parent 62c0282 commit e00e6ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ CHANGELOG Highlight

highlight 3.38

xx.xx.2017
20.06.2017

-fixed Bash variable highlighting issue
-updated astyle code to release 3.0.1 (https://sourceforge.net/p/astyle/bugs/438/)
-added bash_ref_man7_org.lua plugin

Expand Down
6 changes: 2 additions & 4 deletions langDefs/sh.lang
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Keywords={
"printenv", "lp", "tee", "mkfifo", "pathchk", "dd", "od", "hexdump", "m4"},
},

-- FIXME issue with expressions like ${SHELL="${CONFIG_SHELL-/bin/sh}"}
-- fixes issue with expressions like ${SHELL="${CONFIG_SHELL-/bin/sh}"}
{ Id=4,
Regex=[[\$\{.+?\}]],
Regex=[[\$\{.+\$\{.+?\}.+?\}|\$\{.+?\} ]],
},
{ Id=4,
Regex=[[ \$[\w\#]+ ]],
Expand All @@ -61,8 +61,6 @@ Comments={

Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-]]

-- FIXME: : ${SHELL="${CONFIG_SHELL-/bin/sh}"}

function OnStateChange(oldState, newState, token)

if oldState==HL_STRING and token==hereDoc then
Expand Down

0 comments on commit e00e6ed

Please sign in to comment.