Merge pull request #193 from alexherbo2/javascript-rc
javascript.kak: highlight comments
This commit is contained in:
commit
d157ba06cf
|
@ -15,8 +15,9 @@ 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 '#' '$' ''
|
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