Skip to content

Bugfix: accurate line numbers

Compare
Choose a tag to compare
@dekarrin dekarrin released this 13 May 18:04
· 127 commits to master since this release

Previously, adding a new line while inside of certain keywords would cause line numbers to be incorrectly reported as far too low, which caused confusion in situations such as error reporting.

This release includes a series of patches to the lexer to enable it to tag symbols with proper line number information by analyzing the contents of applicable symbols for line advancement and feeding that information back into the state of the lexer.