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
Again, the arrow should point at the missing char:
┃ - [x
┃ ↑ expected "]"
Additional notes:
The above examples are different error reason: one is UnexpectedEndOfInput, the other is Expected(']'). That means I can't just match my way out of this; I'll need to actually think about what's going on. :-)
While I'm fixing this, I should see if there's a better approach to the err.position.column - 1 hack in main.rs where I print the syntax error.
This was introduced/discovered in various parser improvements #64, but it's not important enough for me to block that PR on this bug.
The text was updated successfully, but these errors were encountered:
Example 1: Unexpected end of input:
The arrow should point to the position after the
[
:Example 2: Unexpected end of input when we expect a specific char:
Again, the arrow should point at the missing char:
Additional notes:
UnexpectedEndOfInput
, the other isExpected(']')
. That means I can't justmatch
my way out of this; I'll need to actually think about what's going on. :-)err.position.column - 1
hack inmain.rs
where I print the syntax error.The text was updated successfully, but these errors were encountered: