-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Add underscore formatting in numbers #7030
Conversation
I don't believe we need a regression test currently but an actual test added, this isn't so much resolving a bug as much as adding an enhancement to numbers. |
Should I put it in the misc folder then? |
Yeah I think misc is fair as this isn't syntax related |
Kenzie mentioned something about adding a way to detect if it was a valid number, something like ____1___ shouldn't be valid heres the discord conversation if you're curious: here |
That already isn't valid, but my main concern is how you can have adjacent underscores, for example |
This has already been addressed in the last lines of the test. Parsing the numbers starting and/or ending with |
Personally I agree that having multiple I don't think this reason should axe this entire PR. It would be possible to limit it to just one |
then i think that it would be better to make it consistent across the whole number |
@APickledWalrus and I talked about it on discord and he also thought the same thing (that it shouldn't be allowed), but we can wait and see what the other members think |
oh yes i definitely don't think it you should axe this pr |
Aight, changed it to at most one and added tests for making sure that having multiple isn't supported |
Co-authored-by: Asleepp <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you requested my review (my approval does nothing haha)
Description
Resolves #7015. Adds underscore support for formatting in numbers.
Target Minecraft Versions: any
Requirements: none
Related Issues: #7015