Skip to content

Commit 7afecb5

Browse files
committed
show no error if // follows an operator
1 parent 8dc635d commit 7afecb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sample/sat.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
33
version="3.0">
4-
<xsl:sequence select="self::*:col"/>
4+
<xsl:sequence select="(//(and))"/>
55
</xsl:stylesheet>

src/xsltTokenDiagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ export class XsltTokenDiagnostics {
981981
) {
982982
// allow: ) !=
983983
isXPathError = tv === '*:';
984-
} else if (tv === '*:') {
984+
} else if (tv === '*:' || tv === '//') {
985985
isXPathError = false;
986986
} else if (!((tv === '{}' && (pv === 'map' || pv === 'array')) || tv === '()' || tv === '[]')) {
987987
isXPathError = true;

0 commit comments

Comments
 (0)