@@ -101,7 +101,7 @@ syntax keyword jsStatement contained break continue with yield debugger
101101syntax keyword jsConditional if skipwhite skipempty nextgroup =jsParenIfElse
102102syntax keyword jsConditional else skipwhite skipempty nextgroup =jsCommentMisc,jsIfElseBlock
103103syntax keyword jsConditional switch skipwhite skipempty nextgroup =jsParenSwitch
104- syntax keyword jsRepeat while for skipwhite skipempty nextgroup =jsParenRepeat
104+ syntax keyword jsRepeat while for skipwhite skipempty nextgroup =jsParenRepeat,jsForAwait
105105syntax keyword jsDo do skipwhite skipempty nextgroup =jsRepeatBlock
106106syntax keyword jsLabel contained case default
107107syntax keyword jsTry try skipwhite skipempty nextgroup =jsTryCatchBlock
@@ -164,6 +164,7 @@ syntax match jsFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>/ s
164164syntax region jsFuncArgExpression contained matchgroup =jsFuncArgOperator start =/ =/ end =/ [,)]\@ =/ contains =@jsExpression extend
165165syntax match jsFuncArgCommas contained ' ,'
166166syntax keyword jsArguments contained arguments
167+ syntax keyword jsForAwait contained await skipwhite skipempty nextgroup =jsParenRepeat
167168
168169" Matches a single keyword argument with no parens
169170syntax match jsArrowFuncArgs / \k\+\s *\% (=>\)\@ =/ skipwhite contains =jsFuncArgs skipwhite skipempty nextgroup =jsArrowFunction extend
@@ -275,6 +276,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
275276 HiLink jsFinally Exception
276277 HiLink jsCatch Exception
277278 HiLink jsAsyncKeyword Keyword
279+ HiLink jsForAwait Keyword
278280 HiLink jsArrowFunction Type
279281 HiLink jsFunction Type
280282 HiLink jsGenerator jsFunction
0 commit comments