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 winding lines forward multiple lines #429

Closed
wants to merge 2 commits into from
Closed

Conversation

reese
Copy link
Collaborator

@reese reese commented May 19, 2023

Closes #413

When we wind lines forward with wind_dumping_comments_until_line, we have a check to make sure we're still in the file. This check gets set by incrementing a counter on on_nl inside the parser, but (1) this was incorrect because on_nl wasn't getting called and (2) this is unnecessary since we have the file contents saved, so we can just use the line count instead.

@reese reese requested a review from fables-tales May 19, 2023 07:44
@reese reese force-pushed the reese-block-comments branch from c1cc36f to afc9e57 Compare May 19, 2023 07:48
@reese reese closed this Sep 12, 2023
@reese reese deleted the reese-block-comments branch September 12, 2023 16:47
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.

Comment outside the block when it before has multiple empty lines.
1 participant