diff --git a/syntax/javascript.vim b/syntax/javascript.vim index 6a13434a..36ddf5cf 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -159,6 +159,7 @@ syntax region jsTernaryIf matchgroup=jsTernaryIfOperator s " These must occur here or they will be override by jsTernaryIf syntax match jsOperator /?\.\ze\_D/ syntax match jsOperator /??/ skipwhite skipempty nextgroup=@jsExpression +syntax match jsOperator /?,/ syntax match jsGenerator contained /\*/ skipwhite skipempty nextgroup=jsFuncName,jsFuncArgs,jsFlowFunctionGroup syntax match jsFuncName contained /\<\K\k*/ skipwhite skipempty nextgroup=jsFuncArgs,jsFlowFunctionGroup