Skip to content

Commit 8dc635d

Browse files
committed
fix tokenisation for operator following: {} and []
1 parent 13a59cd commit 8dc635d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xpLexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ export class XPathLexer {
853853
Data.setAsOperatorIfKeyword(currentToken);
854854
break;
855855
case CharLevelState.dSep:
856-
if (prevToken.value === '()' || prevToken.value === '..') {
856+
if (prevToken.value === '()' || prevToken.value === '..' || prevToken.value === '[]' || prevToken.value === '{}') {
857857
Data.setAsOperatorIfKeyword(currentToken);
858858
}
859859
break;

0 commit comments

Comments
 (0)