quick fix 2
classes not using the correct line number.
This commit is contained in:
@@ -74,8 +74,10 @@ class HScript extends Script {
|
|||||||
var code = Assets.getText(p);
|
var code = Assets.getText(p);
|
||||||
var expr:Expr = null;
|
var expr:Expr = null;
|
||||||
try {
|
try {
|
||||||
if (code != null && code.trim() != "")
|
if (code != null && code.trim() != "") {
|
||||||
|
parser.line = 1; // fun fact: this is all you need to reuse a parser without issues. all the other vars get reset on parse.
|
||||||
expr = parser.parseString(code, cl.join("/") + "." + hxExt);
|
expr = parser.parseString(code, cl.join("/") + "." + hxExt);
|
||||||
|
}
|
||||||
} catch(e:Error) {
|
} catch(e:Error) {
|
||||||
_errorHandler(e);
|
_errorHandler(e);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user