Skip to content

Conversation

@m4rch3n1ng
Copy link
Contributor

@m4rch3n1ng m4rch3n1ng commented Oct 25, 2025

this basically allows for 42._method() to properly parse as the call of the method _method on the integer 42.

the FLOAT_LITERAL reference explicitly states not immediately followed by ., _ or an XID_Start character for the character after an ending dot, so disallow this here too.

this fixes exactly one rustc test: integer-literal-method-call-underscore.rs, the test that was for exactly this behaviour.

(noticed this while working on #293)

@wetneb
Copy link

wetneb commented Oct 26, 2025

Looks great to me, thank you :)

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