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
Thanks for reporting this @baodart and providing a minimal reproduction 👍
There is another issue here, the valid token "5" column is reported as 1 instead of 3
I suspect that the logic to keep track of column numbers in case of lexer error recovery.
Here's a reproduction example:
which logs
![image](https://private-user-images.githubusercontent.com/135431588/255602764-9cdb66e4-04dc-47ac-8874-5034d4d29be1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMzk2NTksIm5iZiI6MTcyMDIzOTM1OSwicGF0aCI6Ii8xMzU0MzE1ODgvMjU1NjAyNzY0LTljZGI2NmU0LTA0ZGMtNDdhYy04ODc0LTUwMzRkNGQyOWJlMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNlQwNDE1NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGY0MzVlODcwZjczYTIyN2ZkZmFmOWNiNDk1ODJlNGRlZDM5NmZkZjBjMDc1MDk0NjE1OTkzMmNkYzJjMDVmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.jXbuq5mxNR9fLSDpa-1Uv-TdH52QbOmVLI8u8jOLvrk)
As the lexer can only understand whitespace and number literal, only
5
is captured as tokens here. There are 2 'unexpected character' errors:The text was updated successfully, but these errors were encountered: