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
core: Correctly parse identifiers that start with a number [Minor] #1023
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #1023 +/- ##
=======================================
Coverage 87.00% 87.00%
=======================================
Files 125 125
Lines 19202 19197 -5
Branches 2915 2914 -1
=======================================
- Hits 16706 16702 -4
+ Misses 2000 1999 -1
Partials 496 496
☔ View full report in Codecov by Sentry. |
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.
This does not really generalize, right? So 13d-grid
has still the same issue. This feels quite intuitive, would there be an easy fix?
It does actually handle this! |
Let's add tests then? |
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.
👍
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.
Okay, that's fine then 👍
Not used to python regex syntax 😅
Do you know what the MLIR regex is by any chance? |
MLIR uses the llvm infrastructure, and that doesn't use regexes. It's a really convoluted system for them. |
This change makes it so
2d-grid
is tokenized to[IDENT(2d-grid)]
instead of[NUMBER(2), IDENT(d-grid)]