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.
1 parent 8066c37 commit 7f04bafCopy full SHA for 7f04baf
syntax/javascript.vim
@@ -174,6 +174,7 @@ 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 jsFunctionKey /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/ contained
178
"}}}
179
" Braces, Parens, symbols, colons {{{
180
syntax match javaScriptBraces "[{}\[\]]"
0 commit comments