File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ syntax case match
8080" " Syntax in the JavaScript code
8181syntax match jsFuncCall / \k\+\% (\s *(\)\@ =/
8282syntax match jsSpecial " \v\\ %(0|\\ x\x\{ 2\}\|\\ u\x\{ 4\}\|\c [A-Z]|.)" contained
83- syntax match jsTemplateVar " \$ {.\{ -}}"
83+ syntax match jsTemplateVar " \$ {.\{ -}}" contained
8484syntax region jsStringD start =+ "+ skip =+ \\\\\|\\ $"+ end =+ "+ contains =jsSpecial,@htmlPreproc,@Spell
8585syntax region jsStringS start =+ '+ skip =+ \\\\\|\\ $'+ end =+ '+ contains =jsSpecial,@htmlPreproc,@Spell
8686syntax region jsTemplateString start =+ `+ skip =+ \\\\\|\\ $`+ end =+ `+ contains =jsTemplateVar,jsSpecial,@htmlPreproc
@@ -96,7 +96,7 @@ syntax region jsRegexpString start=+\(\(\(return\|case\)\s\+\)\@<=\|\(\([)\]
9696syntax match jsNumber / \< -\=\d\+ L\=\>\|\< 0[xX]\x\+\> /
9797syntax keyword jsNumber Infinity
9898syntax match jsFloat / \< -\=\% (\d\+\.\d\+\|\d\+\.\|\.\d\+\)\% ([eE][+-]\=\d\+\)\=\> /
99- syntax match jsObjectKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\(\s *:\)\@ =/ contains =jsFunctionKey
99+ syntax match jsObjectKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\(\s *:\)\@ =/ contains =jsFunctionKey contained
100100syntax match jsFunctionKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\(\s *:\s *function\s *\)\@ =/ contained
101101
102102if g: javascript_conceal == 1
You can’t perform that action at this time.
0 commit comments