Make shell variable expansion in "strings" highlighted the same way as in code
This commit is contained in:
parent
f2f04d55fc
commit
ca38e10314
|
@ -35,7 +35,7 @@ add-highlighter -group /sh/code regex (\w+)= 1:variable
|
|||
add-highlighter -group /sh/code regex ^\h*(\w+)\h*\(\) 1:variable
|
||||
|
||||
add-highlighter -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value
|
||||
add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:variable
|
||||
add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:value
|
||||
|
||||
hook -group sh-highlight global WinSetOption filetype=sh %{ add-highlighter ref sh }
|
||||
hook -group sh-highlight global WinSetOption filetype=(?!sh).* %{ remove-highlighter sh }
|
||||
|
|
Loading…
Reference in New Issue
Block a user