File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,9 @@ syntax region jsModuleGroup contained matchgroup=jsModuleBraces s
156
156
syntax region jsSpreadExpression contained matchgroup =jsSpreadOperator start =/ \.\.\. / end =/ [,}\] ]\@ =/ contains =@jsExpression
157
157
syntax region jsRestExpression contained matchgroup =jsRestOperator start =/ \.\.\. / end =/ [,)]\@ =/
158
158
syntax region jsTernaryIf matchgroup =jsTernaryIfOperator start =/ ?:\@ !/ end =/ \% (:\| }\@ =\) / contains =@jsExpression extend skipwhite skipempty nextgroup =@jsExpression
159
- syntax match jsOperator / ?\.\z e\_ D/
159
+ " These must occur here or they will be override by jsTernaryIf
160
+ syntax match jsOperator / ?\.\z e\_ D/
161
+ syntax match jsOperator / ??/ skipwhite skipempty nextgroup =@jsExpression
160
162
161
163
syntax match jsGenerator contained / \* / skipwhite skipempty nextgroup =jsFuncName,jsFuncArgs,jsFlowFunctionGroup
162
164
syntax match jsFuncName contained / \<\K\k */ skipwhite skipempty nextgroup =jsFuncArgs,jsFlowFunctionGroup
You can’t perform that action at this time.
0 commit comments