-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: Rust highlights (regression from the reverse-query-precedence PR) #12795
fix: Rust highlights (regression from the reverse-query-precedence PR) #12795
Conversation
I'm not really a fan of the constant highlight for |
Ok, then I'll remove it from Haskell as well for consistency |
8906683
to
65d74ee
Compare
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.
I tested this for a while yesterday and I think it looks good, I haven't run into any other (fixable) regressions yet. There are still some issues with attributes:
I looked into that for a while though and I don't think it's an easy fix - the bug is in the highlighter rather than the queries. It will be fixed when we switch to the new highlighter (#10286) anyways
This PR fixes some minor things as well as regressions from the query precedence PR
Regressions
Derive Regression
Before
Regression
Enum Regression
Before
Regression
Prelude Regression
Fixed by moving the prelude later to give it higher priority over other queries
Before
Regression
Constructor Regression
Fixed by moving the constructor queries after the PascalCase identifiers to give it higher priority
Before
Regression
Fixes
Incorrect angle bracket color
Before
After
!
not an operator hereBefore
After
Angled For brackets
Before
After