You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error message for missing closing tokens (#397)
When a missing closing token like `)`, `]` or `}` is encountered we want
the "Expected `)`" error to point to a location one past the last valid
token, not to the trailing error tokens.
For example from #349 here's a poor error message from the existing
code:
ERROR: ParseError:
# Error @ REPL[53]:15:5
ylims!(p, (0, last(ylims(p)))
xlabel!(p, "Contig length cutoff (kbp)")
# └─────────────────────────────────────┘ ── Expected `)`
After this change, the error location instead points to the end of the
last valid line:
ERROR: ParseError:
# Error @ REPL[53]:15:5
ylims!(p, (0, last(ylims(p)))
# └── Expected `)`
0 commit comments