Give line number CompileError for bad RawHaxe
This commit is contained in:
@@ -353,7 +353,11 @@ class Kiss {
|
|||||||
arrayDecl;
|
arrayDecl;
|
||||||
};
|
};
|
||||||
case RawHaxe(code):
|
case RawHaxe(code):
|
||||||
Context.parse(code, exp.macroPos());
|
try {
|
||||||
|
Context.parse(code, exp.macroPos());
|
||||||
|
} catch (err:Exception) {
|
||||||
|
throw CompileError.fromExp(exp, 'Haxe parse error: $err');
|
||||||
|
};
|
||||||
case FieldExp(field, innerExp):
|
case FieldExp(field, innerExp):
|
||||||
EField(convert(innerExp), field).withMacroPosOf(exp);
|
EField(convert(innerExp), field).withMacroPosOf(exp);
|
||||||
case KeyValueExp(keyExp, valueExp):
|
case KeyValueExp(keyExp, valueExp):
|
||||||
|
Reference in New Issue
Block a user