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

Expand line number match to a range of lines #58

Merged
merged 3 commits into from
Jan 4, 2025

Conversation

disinvite
Copy link
Collaborator

@disinvite disinvite commented Jan 4, 2025

Resolves #57.

I had planned to eventually drop the sample files tested in test_parser_samples.py but this is one of the only places we actually test that the line numbers are captured correctly. I had some comments warning about detecting the end line of the function; this seems to work okay (with Allman syntax) so I enabled the tests for those. I don't think it's possible for end_line to be None but I will save that refactor for later.

The lines database definitely needs improvement (related to #53) but that's not for this PR.

@disinvite disinvite marked this pull request as ready for review January 4, 2025 21:14
@disinvite disinvite merged commit 99dc586 into isledecomp:master Jan 4, 2025
4 checks passed
@disinvite disinvite deleted the line-match-fix branch January 4, 2025 21:53
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 number annotation match fails on edge case
3 participants