fix single line comments highlighting

This commit is contained in:
Alex Leferry 2 2014-07-10 01:08:01 +02:00
parent 9952704eaf
commit 2aab87f28c

View File

@ -15,8 +15,8 @@ hook global BufCreate .*[.](js) %{
addhl -group / multi_region -default code javascript \ addhl -group / multi_region -default code javascript \
double_string '"' (?<!\\)(\\\\)*" '' \ double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" "'" '' \ single_string "'" "'" '' \
regex '/' (?<!\\)(\\\\)*/[gimy]* '' \ comment // '$' '' \
comment '#' '$' '' 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
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp