We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8066c37 + 539dd14 commit e30ebd4Copy full SHA for e30ebd4
syntax/javascript.vim
@@ -174,6 +174,8 @@ syntax match javaScriptFuncArg "\(([^()]*)\)" contains=javaScriptParen
174
syntax match javaScriptFuncComma /,/ contained
175
syntax match javaScriptFuncEq /=/ contained
176
syntax region javaScriptFuncDef start="\<function\>" end="\([^)]*\)" contains=javaScriptFuncKeyword,javaScriptFuncArg keepend
177
+syntax match javaScriptObjectKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\)\@=/ contains=javaScriptFunctionKey
178
+syntax match javaScriptFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/ contained
179
"}}}
180
" Braces, Parens, symbols, colons {{{
181
syntax match javaScriptBraces "[{}\[\]]"
0 commit comments