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 efc2408 commit 82e1d92Copy full SHA for 82e1d92
src/xpLexer.ts
@@ -686,6 +686,11 @@ export class XPathLexer {
686
const lastCharIsSingleQuote = lastChar === "'";
687
if (lastChar !== '"' && !lastCharIsSingleQuote && !lastToken.value.endsWith('"') && !lastToken.value.startsWith(''')) {
688
lastToken['error'] = ErrorType.XPathStringLiteral;
689
+ } else if (lastChar === '"' || lastChar === "'" && lastToken.length > 1) {
690
+ const mod2Chars = [...lastToken.value].filter(l => l === lastChar).length % 2;
691
+ if (mod2Chars === 0) {
692
+ lastToken['error'] = ErrorType.XPathStringLiteral;
693
+ }
694
}
695
} else {
696
this.checkStringLiteralEnd(lastToken);
0 commit comments