File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -649,6 +649,7 @@ export class XslLexer {
649
649
let tokenChars : string [ ] = [ ] ;
650
650
let result : BaseToken [ ] = [ ] ;
651
651
let attName : string = '' ;
652
+ let avtExit = false ;
652
653
653
654
let xpLexer : XPathLexer = new XPathLexer ( ) ;
654
655
xpLexer . elementNameTests = this . elementNameTests ;
@@ -1039,8 +1040,10 @@ export class XslLexer {
1039
1040
if ( newCharCount > this . charCount ) {
1040
1041
this . charCount = newCharCount ;
1041
1042
}
1043
+ // fix issue with last char of xpath
1042
1044
this . lineCharCount = p . startCharacter ;
1043
1045
nextChar = xsl . charAt ( this . charCount ) ;
1046
+ avtExit = true ;
1044
1047
}
1045
1048
nextState = nextState === XMLCharState . sqAvt ? XMLCharState . lSq : XMLCharState . lDq ;
1046
1049
break ;
@@ -1102,6 +1105,10 @@ export class XslLexer {
1102
1105
1103
1106
}
1104
1107
tokenStartChar = this . lineCharCount > 0 ? this . lineCharCount - 1 : 0 ;
1108
+ if ( avtExit ) {
1109
+ avtExit = false ;
1110
+ tokenStartChar ++ ;
1111
+ }
1105
1112
tokenStartLine = this . lineNumber ;
1106
1113
} // else ends
1107
1114
if ( isCurrentCharNewLIne ) {
You can’t perform that action at this time.
0 commit comments