Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 20, 2025

This fixes several rules that were using greedy repetition operators. The problem with (DIGIT|_)* DIGIT is that the first repetition consumes all of the digits.

I actually don't know exactly why the original rules were written in this particular way. I'm guessing they were intending to express that there must be at least one digit. However, just having _* should be sufficient.

This fixes several rules that were using greedy repetition operators.
The problem with `(DIGIT|_)* DIGIT` is that the first repetition
consumes all of the digits.

I actually don't know exactly why the original rules were written in
this particular way. I'm guessing they were intending to express that
there must be at least one digit. However, just having `_`* should be
sufficient.
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Dec 20, 2025
@traviscross traviscross added this pull request to the merge queue Dec 22, 2025
Merged via the queue into rust-lang:master with commit 0d0c336 Dec 22, 2025
5 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Dec 22, 2025
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.

3 participants