1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 15:43:01 +00:00

Make parser errors a bit better for files with no closing

delimiters.
This commit is contained in:
Calvin Rose
2019-01-17 23:43:46 -05:00
parent c4114fbcdb
commit b4934ceddc
7 changed files with 24 additions and 24 deletions

View File

@@ -1454,6 +1454,12 @@ value, one key will be ignored."
nil
where))))
(if (= (parser/status p) :pending)
(onstatus :parse
(string "unmatched delimiters " (parser/state p))
nil
where))
(set *env* oldenv)
env)