@@ -215,11 +215,12 @@ endif
215215
216216exe ' syntax match jsFunction /\<function\>/ nextgroup=jsGenerator,jsFuncName,jsFuncArgs skipwhite ' .(exists (' g:javascript_conceal_function' ) ? ' conceal cchar=' .g: javascript_conceal_function : ' ' )
217217
218- syntax match jsGenerator contained ' \* ' nextgroup =jsFuncName skipwhite
219- syntax match jsFuncName contained / \< [a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup =jsFuncArgs skipwhite
220- syntax region jsFuncArgs contained matchgroup =jsFuncParens start =' (' end =' )' contains =jsFuncArgCommas,jsFuncArgRest,jsAssignmentExpr,jsComment,jsLineComment nextgroup =jsFuncBlock keepend skipwhite skipempty
221- syntax match jsFuncArgCommas contained ' ,'
222- syntax match jsFuncArgRest contained / \% (\.\.\. [a-zA-Z_$][0-9a-zA-Z_$]*\) )/
218+ syntax match jsGenerator contained ' \* ' nextgroup =jsFuncName skipwhite
219+ syntax match jsFuncName contained / \< [a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup =jsFuncArgs skipwhite
220+ syntax region jsFuncArgs contained matchgroup =jsFuncParens start =' (' end =' )' contains =jsFuncArgCommas,jsFuncArgRest,jsAssignmentExpr,jsComment,jsLineComment nextgroup =jsFuncBlock keepend skipwhite skipempty
221+ syntax match jsFuncArgCommas contained ' ,'
222+ syntax match jsFuncArgRest contained / \% (\.\.\. [a-zA-Z_$][0-9a-zA-Z_$]*\) )/ contains =jsFuncArgRestDots
223+ syntax match jsFuncArgRestDots contained / \.\.\. /
223224
224225exe ' syntax match jsArrowFunction /=>/ ' .(exists (' g:javascript_conceal_arrow_function' ) ? ' conceal cchar=' .g: javascript_conceal_arrow_function : ' ' )
225226
@@ -316,6 +317,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
316317 HiLink jsModules Include
317318 HiLink jsModuleWords Include
318319 HiLink jsDecorator Special
320+ HiLink jsFuncArgRestDots Noise
319321
320322 HiLink jsDomErrNo Constant
321323 HiLink jsDomNodeConsts Constant
0 commit comments