From 29b61bcee9a595298cd8c6e499f7163fc56a240f Mon Sep 17 00:00:00 2001 From: ncannasse Date: Wed, 12 Sep 2018 17:59:40 +0200 Subject: [PATCH] fixed invalid char position --- hscript/Parser.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {