metalua
metalua copied to clipboard
Reporting the position of the last valid token
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.