@@ -215,11 +215,12 @@ endif
215
215
216
216
exe ' syntax match jsFunction /\<function\>/ nextgroup=jsGenerator,jsFuncName,jsFuncArgs skipwhite ' .(exists (' g:javascript_conceal_function' ) ? ' conceal cchar=' .g: javascript_conceal_function : ' ' )
217
217
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 / \.\.\. /
223
224
224
225
exe ' syntax match jsArrowFunction /=>/ ' .(exists (' g:javascript_conceal_arrow_function' ) ? ' conceal cchar=' .g: javascript_conceal_arrow_function : ' ' )
225
226
@@ -316,6 +317,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
316
317
HiLink jsModules Include
317
318
HiLink jsModuleWords Include
318
319
HiLink jsDecorator Special
320
+ HiLink jsFuncArgRestDots Noise
319
321
320
322
HiLink jsDomErrNo Constant
321
323
HiLink jsDomNodeConsts Constant
0 commit comments