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 86db8f8 commit 196e2c2Copy full SHA for 196e2c2
hscript/Parser.hx
@@ -148,7 +148,8 @@ class Parser {
148
}
149
150
public function invalidChar(c) {
151
- error(EInvalidChar(c), readPos-1, readPos-1);
+ var pos = currentPos - 1;
152
+ error(EInvalidChar(c), pos, pos);
153
154
155
function initParser( origin, pos ) {
@@ -1597,6 +1598,7 @@ class Parser {
1597
1598
id += String.fromCharCode(char);
1599
1600
1601
+ readPos--;
1602
invalidChar(char);
1603
case '#'.code:
1604
char = readChar();
@@ -1611,6 +1613,7 @@ class Parser {
1611
1613
1612
1614
1615
1616
1617
1618
default:
1619
if( ops[char] ) {
0 commit comments