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

GDScript: Fix repeated _ are allowed after decimal point #73203

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

dalexeev
Copy link
Member

@dalexeev dalexeev commented Feb 13, 2023

Add missing check to disallow literals like 10.12___3. This is already checked for parts before decimal point and after e.

Closes #73804.

@dalexeev dalexeev requested a review from a team as a code owner February 13, 2023 06:53
@akien-mga akien-mga added this to the 4.1 milestone Feb 13, 2023
@anvilfolk
Copy link
Contributor

Not familiar with the tokenizer and I don't trust myself to review code right now, but it'd be great to add unit tests for these! :)

@adamscott
Copy link
Member

The PR works well. I agree with @anvilfolk for the need of unit tests and @joao-pedro-braz for the error message that could confuse users.

Other than that, once fixed, this will be good to go.

@dalexeev dalexeev force-pushed the gds-fix-num-literal branch from 7131734 to fba8cbe Compare June 14, 2023 18:47
@akien-mga akien-mga merged commit 12e8bc5 into godotengine:master Jun 15, 2023
@akien-mga
Copy link
Member

Thanks!

@dalexeev dalexeev deleted the gds-fix-num-literal branch June 15, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GDscript tokenizer : inconsistent rules for underscore usage in numbers
5 participants