Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Ne_Eo
2024-11-29 22:02:37 +01:00
22 changed files with 214 additions and 38 deletions
+3 -1
View File
@@ -79,8 +79,10 @@ class HScript extends Script {
var code = Assets.getText(p);
var expr:Expr = null;
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);
}
} catch(e:Error) {
_errorHandler(e);
} catch(e) {