We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9958258 commit efc2408Copy full SHA for efc2408
src/xpLexer.ts
@@ -990,8 +990,12 @@ export class XPathLexer {
990
}
991
} else if (isStar && (prevTokenT === TokenLevelState.operator || prevTokenT === TokenLevelState.complexExpression)) {
992
// $a and * or if ($a) then * else book
993
- currentToken.charType = CharLevelState.lName;
994
- currentToken.tokenType = TokenLevelState.nodeType;
+ if (prevTokenT === TokenLevelState.operator && prevToken.charType === CharLevelState.dSep && prevToken.value === '()') {
+ // keep the same
995
+ } else {
996
+ currentToken.charType = CharLevelState.lName;
997
+ currentToken.tokenType = TokenLevelState.nodeType;
998
+ }
999
1000
1001
0 commit comments