Highlight variable expansions as values in shell scripts
This commit is contained in:
parent
e7970232d3
commit
aca984f000
|
@ -36,7 +36,7 @@ addhl -group /sh/code regex [\[\]\(\)&|]{1,2} 0:operator
|
||||||
addhl -group /sh/code regex (\w+)= 1:identifier
|
addhl -group /sh/code regex (\w+)= 1:identifier
|
||||||
addhl -group /sh/code regex ^\h*(\w+)\h*\(\) 1:identifier
|
addhl -group /sh/code regex ^\h*(\w+)\h*\(\) 1:identifier
|
||||||
|
|
||||||
addhl -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:identifier
|
addhl -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value
|
||||||
addhl -group /sh/double_string regex \$(\w+|\{.+?\}) 0:identifier
|
addhl -group /sh/double_string regex \$(\w+|\{.+?\}) 0:identifier
|
||||||
|
|
||||||
hook -group sh-highlight global WinSetOption filetype=sh %{ addhl ref sh }
|
hook -group sh-highlight global WinSetOption filetype=sh %{ addhl ref sh }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user