fix single line comments highlighting
This commit is contained in:
parent
9952704eaf
commit
2aab87f28c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user