mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
[sh] Allow hyphens in variables but not every character
Co-Authored-By: Frank LENORMAND <lenormf@gmail.com>
This commit is contained in:
parent
b84d852723
commit
71e4ac4574
@ -55,7 +55,7 @@ evaluate-commands %sh{
|
||||
}
|
||||
|
||||
add-highlighter shared/sh/code/operators regex [\[\]\(\)&|]{1,2} 0:operator
|
||||
add-highlighter shared/sh/code/variable regex (\S+)= 1:variable
|
||||
add-highlighter shared/sh/code/variable regex ([\w-]+)= 1:variable
|
||||
add-highlighter shared/sh/code/function regex ^\h*(\w+)\h*\(\) 1:function
|
||||
|
||||
add-highlighter shared/sh/code/unscoped_expansion regex \$(\w+|#|@|\?|\$|!|-|\*) 0:value
|
||||
|
Loading…
Reference in New Issue
Block a user