The current grammar is really crusty, only supports a handful of
cases, and is also out-of-date after various refactorings. This commit
refactors the textmate grammar to handle significantly more cases,
and now provides proper coloring for a majority of cases (including
dialect attributes, operations, types, etc.)
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I validated the results using most of our upstream test cases. I may have missed some potential edge cases, but this is a much better iteration point that what we had before. There are a few places where we miscolor, but that is mostly because it's impossible in some cases to differentiate a region from an attribute dictionary.
Comment Actions
LGTM, could you add a before and after screenshot of a test? (Just for easy visual check)