Properly recover from errors
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
f4e8137e17
commit
b07bef7904
4 changed files with 157 additions and 120 deletions
|
|
@ -2,7 +2,9 @@
|
|||
source: src/parser/mod.rs
|
||||
expression: error.to_report()
|
||||
---
|
||||
[1m[91merror[0m[1m: valid variables are alpha[0m
|
||||
[1m[91merror[0m[1m: Invalid variable identifier[0m
|
||||
[1m[94m ╭▸ [0m
|
||||
[1m[94m1[0m [1m[94m│[0m Hello {{ the2re }}
|
||||
[1m[94m╰╴[0m [1m[91m━━━━━━[0m
|
||||
[1m[94m1[0m [1m[94m│[0m Hello {{ the2re }} {{ the@re }}
|
||||
[1m[94m│[0m [1m[91m━━━[0m
|
||||
[1m[94m│[0m
|
||||
[1m[94m╰ [0m[1mhelp[0m: valid variable identifiers are alphanumeric
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue