diff --git a/hscript/Parser.hx b/hscript/Parser.hx index cd48c66..524c88b 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -150,7 +150,7 @@ class Parser { } public function invalidChar(c) { - error(EInvalidChar(c), readPos, readPos); + error(EInvalidChar(c), readPos-1, readPos-1); } function initParser( origin ) {