1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

Merge branch 'javascript-highlighter-add-template-literals' of git://github.com/schickm/kakoune

This commit is contained in:
Maxime Coste 2017-01-06 19:36:49 +00:00
commit d2199bc619

View File

@ -11,6 +11,7 @@ hook global BufCreate .*[.](js) %{
addhl -group / regions -default code javascript \
double_string '"' (?<!\\)(\\\\)*" '' \
single_string "'" (?<!\\)(\\\\)*' '' \
literal "`" (?<!\\)(\\\\)*` '' \
comment // '$' '' \
comment /\* \*/ ''
@ -20,6 +21,8 @@ addhl -group / regions -default code javascript \
addhl -group /javascript/double_string fill string
addhl -group /javascript/single_string fill string
addhl -group /javascript/comment fill comment
addhl -group /javascript/literal fill string
addhl -group /javascript/literal regex \${.*?} 0:value
addhl -group /javascript/code regex \$\w* 0:identifier
addhl -group /javascript/code regex \b(document|false|null|parent|self|this|true|undefined|window)\b 0:value