[mlir] Significantly overhaul the textmate grammar
authorRiver Riddle <riddleriver@gmail.com>
Thu, 12 May 2022 10:02:51 +0000 (03:02 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Thu, 12 May 2022 22:50:32 +0000 (15:50 -0700)
commit86f5caeee955660e6faf71e5efd2ae24a335a0cc
tree02cf662e5287bb576c42eddd81fdc7617f02d351
parente82e4fa7ef717b95eb3abf45a6f2a3571e6bc468
[mlir] Significantly overhaul the textmate grammar

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.)

Differential Revision: https://reviews.llvm.org/D125458
mlir/utils/textmate/mlir.json