string and comment do not require white space before

This commit is contained in:
Alex Leferry 2 2014-07-07 22:24:09 +02:00
parent 83592f5285
commit 207bb7e389

View File

@ -16,9 +16,9 @@ hook global BufCreate .*[.](fish) %{
# ‾‾‾‾‾‾‾‾‾‾‾‾
addhl -group / multi_region -default code fish \
double_string (^|\h)" (?<!\\)(\\\\)*" '' \
single_string (^|\h)' (?<!\\)(\\\\)*' '' \
comment (^|\h)# $ ''
double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" (?<!\\)(\\\\)*' '' \
comment '#' $ ''
addhl -group /fish/double_string fill string
addhl -group /fish/double_string regex (\$\w+)|(\{\$\w+\}) 0:identifier