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

Count blank lines and comments for calculating line numbers #105

Merged

Conversation

kaaveland
Copy link
Owner

Moves calculating line numbers to when we're splitting scripts into statements, prior to trimming anything. Use nom to count leading whitespace or comments with actual parsing.

@kaaveland kaaveland linked an issue Jun 27, 2024 that may be closed by this pull request
@kaaveland kaaveland merged commit 020e14a into main Jun 27, 2024
9 checks passed
@kaaveland kaaveland deleted the 104-comments-and-blank-lines-are-not-counted-as-lines branch June 27, 2024 14:43
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.

Comments and blank lines are not counted as lines
1 participant