Skip to content

Commit 7d30463

Browse files
bouncemebounceme
bounceme
authored and
bounceme
committed
Revert "Merge branch 'master' into develop"
This reverts commit 822dfe5, reversing changes made to da65c0c.
1 parent 7e9aeb3 commit 7d30463

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

syntax/javascript.vim

+6-7
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ syntax match jsObjectSeparator contained /,/
8484
syntax region jsObjectValue contained start=/:/ end=/\%(,\|}\)\@=/ contains=jsObjectColon,@jsExpression extend
8585
syntax match jsObjectFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>[\r\n\t ]*(\@=/ skipwhite skipempty nextgroup=jsFuncArgs
8686
syntax match jsFunctionKey contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>\(\s*:\s*function\s*\)\@=/
87-
syntax match jsObjectMethodType contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ contains=jsAsyncKeyword skipwhite skipempty nextgroup=jsObjectFuncName
87+
syntax match jsObjectMethodType contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ skipwhite skipempty nextgroup=jsObjectFuncName
8888
syntax region jsObjectStringKey contained start=+"+ skip=+\\\("\|$\)+ end=+"\|$+ contains=jsSpecial,@Spell extend skipwhite skipempty nextgroup=jsFuncArgs,jsObjectValue
8989
syntax region jsObjectStringKey contained start=+'+ skip=+\\\('\|$\)+ end=+'\|$+ contains=jsSpecial,@Spell extend skipwhite skipempty nextgroup=jsFuncArgs,jsObjectValue
9090

@@ -108,8 +108,7 @@ syntax keyword jsTry try skipwhite skipempty nextgro
108108
syntax keyword jsFinally contained finally skipwhite skipempty nextgroup=jsFinallyBlock
109109
syntax keyword jsCatch contained catch skipwhite skipempty nextgroup=jsParenCatch
110110
syntax keyword jsException throw
111-
syntax keyword jsAsyncKeyword async skipwhite skipempty nextgroup=jsFunction,jsFuncName
112-
syntax keyword jsAwaitKeyword await
111+
syntax keyword jsAsyncKeyword async await
113112
syntax match jsSwitchColon contained /:/ skipwhite skipempty nextgroup=jsSwitchBlock
114113

115114
" Keywords
@@ -178,7 +177,7 @@ exe 'syntax match jsArrowFunction /=>/ skipwhite skipempty nextgroup=jsFunc
178177
" Classes
179178
syntax keyword jsClassKeywords contained extends class
180179
syntax match jsClassNoise contained /\./
181-
syntax match jsClassMethodType contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ contains=jsAsyncKeyword skipwhite skipempty nextgroup=jsFuncName,jsClassProperty
180+
syntax match jsClassMethodType contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ skipwhite skipempty nextgroup=jsFuncName,jsClassProperty
182181
syntax match jsClassDefinition /\<class\>\%( [a-zA-Z_$][0-9a-zA-Z_$ \n.]*\)*/ contains=jsClassKeywords,jsClassNoise skipwhite skipempty nextgroup=jsCommentClass,jsClassBlock,jsFlowClassGroup
183182
syntax match jsClassProperty contained /\<[0-9a-zA-Z_$]*\>\(\s*=\)\@=/ skipwhite skipempty nextgroup=jsClassValue
184183
syntax region jsClassValue contained start=/=/ end=/\%(;\|}\|\n\)\@=/ contains=@jsExpression
@@ -228,8 +227,8 @@ if exists("javascript_plugin_flow")
228227
runtime extras/flow.vim
229228
endif
230229

231-
syntax cluster jsExpression contains=jsBracket,jsParen,jsObject,jsBlock,jsTernaryIf,jsTaggedTemplate,jsTemplateString,jsString,jsRegexpString,jsNumber,jsFloat,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsFuncCall,jsUndefined,jsNan,jsPrototype,jsBuiltins,jsNoise,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs,jsParensError,jsComment,jsArguments,jsThis,jsSuper,jsDo,jsAsyncKeyword,jsAwaitKeyword
232-
syntax cluster jsAll contains=@jsExpression,jsExportContainer,jsImportContainer,jsStorageClass,jsConditional,jsRepeat,jsReturn,jsStatement,jsException,jsTry
230+
syntax cluster jsExpression contains=jsBracket,jsParen,jsObject,jsBlock,jsTernaryIf,jsTaggedTemplate,jsTemplateString,jsString,jsRegexpString,jsNumber,jsFloat,jsOperator,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsFuncCall,jsUndefined,jsNan,jsPrototype,jsBuiltins,jsNoise,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs,jsParensError,jsComment,jsArguments,jsThis,jsSuper,jsDo
231+
syntax cluster jsAll contains=@jsExpression,jsExportContainer,jsImportContainer,jsStorageClass,jsConditional,jsRepeat,jsReturn,jsStatement,jsException,jsTry,jsAsyncKeyword
233232

234233
" Define the default highlighting.
235234
" For version 5.7 and earlier: only when not done already
@@ -277,7 +276,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
277276
HiLink jsFinally Exception
278277
HiLink jsCatch Exception
279278
HiLink jsAsyncKeyword Keyword
280-
HiLink jsAwaitKeyword Keyword
279+
HiLink jsForAwait Keyword
281280
HiLink jsArrowFunction Type
282281
HiLink jsFunction Type
283282
HiLink jsGenerator jsFunction

0 commit comments

Comments
 (0)