-
Notifications
You must be signed in to change notification settings - Fork 590
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
[Groovy] refactor #4193
base: master
Are you sure you want to change the base?
[Groovy] refactor #4193
Conversation
- test base scope in syntax test file - bump syntax to v2, replace `pop: true` with `pop: 1` - move syntax variables to EOF - make capturing groups non-capturing where applicable - add section markers to syntax file
|
I'll take a look through your suggestions later, got most on my TODO anyway. Going step-by-step with the free time I have. |
scope: storage.type.primitive.float.32bit.groovy | ||
- match: \bdouble(?:\b|(?:\[\s*\])*\b) | ||
- match: \bdouble(?:\b|{{optional_arrays}}\b) |
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.
Why do the optional arrays have \b
at the end? Won't that basically never match?
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.
That's what the match had before this PR where it matched all "primitive types"-words.
I haven't looked into every single match in the syntax, yet. Started with tearing apart word-lists to add more granular scopes.
Pretty sure this isn't the only one that currently doesn't work.
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.
Right. I know this wasn't your doing. Just wanted to flag. 🙂
pop: true
withpop: 1
Co-authored-by: deathaxe [email protected]
Co-authored-by: Keith Hall [email protected]
Co-authored-by: Michael B. Lyons [email protected]