1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 10:32:19 +03:00

Make shell variable expansion in "strings" highlighted the same way as in code

This commit is contained in:
Maxime Coste 2017-05-25 19:35:53 +01:00
parent f2f04d55fc
commit ca38e10314

View File

@ -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 }