Skip to content

Commit 9299bd3

Browse files
committed
Improved jsTaggedTemplate performance
Another match that turns up pretty high in the list of total time spent under `syntime`
1 parent 75bb0b0 commit 9299bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ syntax region jsTemplateVar matchgroup=jsTemplateBraces start=+${+ end=+}+
9292
syntax region jsStringD start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@htmlPreproc,@Spell
9393
syntax region jsStringS start=+'+ skip=+\\\('\|$\)+ end=+'\|$+ contains=jsSpecial,@htmlPreproc,@Spell
9494
syntax region jsTemplateString start=+`+ skip=+\\\(`\|$\)+ end=+`+ contains=jsTemplateVar,jsSpecial,@htmlPreproc
95-
syntax region jsTaggedTemplate start=/\k\+\(\(\n\|\s\)\+\)\?`/ end=+`+ contains=jsTemplateString keepend
95+
syntax region jsTaggedTemplate start=/\k\+\%([\n\s]\+\)\?`/ end=+`+ contains=jsTemplateString keepend
9696
syntax region jsRegexpCharClass start=+\[+ skip=+\\.+ end=+\]+ contained
9797
syntax match jsRegexpBoundary "\v%(\<@![\^$]|\\[bB])" contained
9898
syntax match jsRegexpBackRef "\v\\[1-9][0-9]*" contained

0 commit comments

Comments
 (0)