amber-lang / heraclitus

🧱 Compiler frontend for developing great programming languages
https://crates.io/crates/heraclitus-compiler
GNU General Public License v3.0
23 stars 2 forks source link

[BUG] Unclosed command literal reports the wrong line #53

Open Mte90 opened 4 months ago

Mte90 commented 4 months ago

The biggest issue I get with Amber is that one:

unsafe $echo

echo 123
echo true

That report:

Unclosed command literal
at [unknown]:6:1

5| echo true
6|

So on long scripts find the line with the issue is a very hard job. It should says "Unclosed command literal started on line 1".

Ph0enixKM commented 4 months ago

This is an Heraclitus issue: https://github.com/amber-lang/heraclitus so that it keeps the position of the opening bracket