Properly recover from errors

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-05 17:33:19 +01:00
parent f4e8137e17
commit b07bef7904
4 changed files with 157 additions and 120 deletions

View file

@ -2,7 +2,9 @@
source: src/parser/mod.rs
expression: error.to_report()
---
error: valid variables are alpha
error: Invalid variable identifier
 ╭▸ 
1 │ Hello {{ the2re }}
╰╴ ━━━━━━
1 │ Hello {{ the2re }} {{ the@re }}
│ ━━━
│
╰ help: valid variable identifiers are alphanumeric