metalua icon indicating copy to clipboard operation
metalua copied to clipboard

Reporting the position of the last valid token

Open aldum opened this issue 2 years ago • 0 comments

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 avatar Jan 16 '24 11:01 aldum