Skip to content

Conversation

@aldum
Copy link

@aldum aldum commented Jan 16, 2024

This PR aims to provide the location info of the token facing the one where a parse error occured.
To this end, another line of text is added to the parse error, in the form of

facing: line ?, char ?

The implementation has been tested against a set of cases originally from LuaMinify, with more corner cases added as they come up during manual testing.

aldum added 3 commits November 3, 2023 16:38
The point of adding the previous location is enabling
proper syntax highlighting. For that use, not only the
location of the error is required, but also the point
up to which the code was valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant