highlight multi-line comments

This commit is contained in:
Alex Leferry 2 2014-07-10 01:10:04 +02:00
parent 2aab87f28c
commit 84c960ea7c

View File

@ -16,6 +16,7 @@ addhl -group / multi_region -default code javascript \
double_string '"' (?<!\\)(\\\\)*" '' \ double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" "'" '' \ single_string "'" "'" '' \
comment // '$' '' \ comment // '$' '' \
comment /[*] [*]/ '' \
regex / (?<!\\)(\\\\)*/[gimy]* '' regex / (?<!\\)(\\\\)*/[gimy]* ''
# Regular expression flags are: g → global match, i → ignore case, m → multi-lines, y → sticky # Regular expression flags are: g → global match, i → ignore case, m → multi-lines, y → sticky