fix off-by-one

This commit is contained in:
erik-krogh
2023-08-30 13:29:23 +02:00
parent 2643ab3dbf
commit 984795ee46
3 changed files with 28 additions and 12 deletions

View File

@@ -2709,7 +2709,7 @@ public class Parser {
m.find(this.pos);
int next = m.end();
return !Whitespace.lineBreakG.matcher(inputSubstring(this.pos, next)).matches()
&& Identifiers.isIdentifierChar(this.input.codePointAt(next + 1), false);
&& Identifiers.isIdentifierChar(this.input.codePointAt(next), false);
}
/**