Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows Line Number #401

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mwasplund
Copy link

@mwasplund mwasplund commented Dec 27, 2022

fixes #389

The lexer was incorrectly peeking at the current character when seeing if a carriage return also has a trailing line feed. Updated to use peek next to correctly skip over the LF.

Also added a script to run unit tests. These tests pass with and without my change, so I wonder if there is a way to verify the exact line information in the error code.

@mwasplund mwasplund changed the title Fix Windows Line Numbers Fix Windows Line Number. fixes #389 Dec 27, 2022
@mwasplund mwasplund changed the title Fix Windows Line Number. fixes #389 Fix Windows Line Number Dec 27, 2022
set /a tests_total=0
set /a tests_success=0
set /a tests_fail=0
set /a tests_timeout=0
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unsure what the best replacement is for timeout, so I removed the timout checks for now.

@mwasplund mwasplund closed this Dec 27, 2022
@mwasplund mwasplund reopened this Dec 27, 2022
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.

Line numbers in error messages are wrong
1 participant