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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: The marked PR is awaiting review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants