File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,8 @@ syntax match javaScriptFuncArg "\(([^()]*)\)" contains=javaScriptParen
174
174
syntax match javaScriptFuncComma / ,/ contained
175
175
syntax match javaScriptFuncEq / =/ contained
176
176
syntax region javaScriptFuncDef start =" \< function\> " end =" \( [^)]*\) " contains =javaScriptFuncKeyword,javaScriptFuncArg keepend
177
- syntax match jsFunctionKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s *:\s *function\s *\)\@ =/ contained
177
+ syntax match javaScriptObjectKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s *:\)\@ =/ contains =jsFunctionKey
178
+ syntax match javaScriptFunctionKey / \< [a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s *:\s *function\s *\)\@ =/ contained
178
179
" }}}
179
180
" Braces, Parens, symbols, colons {{{
180
181
syntax match javaScriptBraces " [{}\[\] ]"
You can’t perform that action at this time.
0 commit comments