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

Parse many literals along side idents in names #398

Merged
merged 7 commits into from
Jan 4, 2024

Conversation

RedPhoenixQ
Copy link
Contributor

This is a fix for the bug mentioned in #396 (comment).

This is similar to #336 and also addresses #335, se the test for examples of what is now possible

The implications mentioned in #335 (comment) are not addressed here, but for now this fixes the bug that #396 created

We will not accept floats because `123.123` is a float literal,
but `123 .123` is a int literal followed by a class called `123`.
This could be confusing so it will not be accepted.

Ints can have leading zeros, like `0123`, but this is not guarranteed by
the rust compiler to always work, which could cause future errors.
An example would be truncating `001` to `1`.
This outputs exactly what is written, which is the obvious behaviour
RedPhoenixQ and others added 2 commits November 15, 2023 12:24
Previous verison was not using nightly, causing errors in the automated
test that are using nightly
Copy link
Owner

@lambda-fairy lambda-fairy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@lambda-fairy lambda-fairy merged commit b3a98c9 into lambda-fairy:main Jan 4, 2024
4 checks passed
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.

2 participants