File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 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
156156syntax region jsSpreadExpression contained matchgroup =jsSpreadOperator start =/ \.\.\. / end =/ [,}\] ]\@ =/ contains =@jsExpression
157157syntax region jsRestExpression contained matchgroup =jsRestOperator start =/ \.\.\. / end =/ [,)]\@ =/
158158syntax 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
160162
161163syntax match jsGenerator contained / \* / skipwhite skipempty nextgroup =jsFuncName,jsFuncArgs,jsFlowFunctionGroup
162164syntax match jsFuncName contained / \<\K\k */ skipwhite skipempty nextgroup =jsFuncArgs,jsFlowFunctionGroup
You can’t perform that action at this time.
0 commit comments