Skip to content

Fix duplicated content in C++ grammar #60

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

Merged
merged 3 commits into from
Apr 6, 2025
Merged

Fix duplicated content in C++ grammar #60

merged 3 commits into from
Apr 6, 2025

Conversation

ryangjchandler
Copy link
Collaborator

@ryangjchandler ryangjchandler commented Apr 6, 2025

Related to #57.

  • The CPP grammar actually had a bad RegEx (?=.) which was causing this issue when tokenising numeric values. It was trying to perform a positive-lookahead for a . character to signal tokenisation of a float/double, but it was instead doing an "any character except line breaks" and consuming the entire line incorrectly.

@ryangjchandler ryangjchandler marked this pull request as ready for review April 6, 2025 23:40
@ryangjchandler ryangjchandler merged commit 3028048 into main Apr 6, 2025
3 checks passed
@ryangjchandler ryangjchandler deleted the 57-fix branch April 13, 2025 17:28
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.

1 participant