[mlir] Significantly overhaul the textmate grammarThe current grammar is really crusty, only supports a handful ofcases, and is also out-of-date after various refactorings. This commitrefactors t
[mlir] Significantly overhaul the textmate grammarThe current grammar is really crusty, only supports a handful ofcases, and is also out-of-date after various refactorings. This commitrefactors the textmate grammar to handle significantly more cases,and now provides proper coloring for a majority of cases (includingdialect attributes, operations, types, etc.)Differential Revision: https://reviews.llvm.org/D125458
show more ...
[mlir][textmate] Add support for function visibilityAvoids functions with visibility not being marked as functions. Testedvia Lightshow.
Use simpler highlighting textmate syntaxChanges from:https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_format=auto&grammar_url=https%3A%2F%2Fraw.githubusercontent.com%2
Use simpler highlighting textmate syntaxChanges from:https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_format=auto&grammar_url=https%3A%2F%2Fraw.githubusercontent.com%2Fjpienaar%2Fmlir-grammar%2Fmaster%2Fgrammars%2Fmlir.json&grammar_text=&code_source=from-url&code_url=https%3A%2F%2Fraw.githubusercontent.com%2Fjpienaar%2Fmlir-grammar%2Fmaster%2Fsample.mlir&code=To:https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_format=auto&grammar_url=https%3A%2F%2Fraw.githubusercontent.com%2Fjpienaar%2Fmlir-grammar%2Fsimpler%2Fgrammars%2Fmlir.json&grammar_text=&code_source=from-url&code_url=https%3A%2F%2Fraw.githubusercontent.com%2Fjpienaar%2Fmlir-grammar%2Fmaster%2Fsample.mlir&code=Which I think is an improvement.PiperOrigin-RevId: 280674770
Update textmate syntax fileAllow comments in more places and fix function params.PiperOrigin-RevId: 279986797
Add start of textmate language grammar.Basic* grammar to start of with, this doesn't handle custom ops and doesn'thandle ops with regions. But useful enough to make reading the .mlir fileseasier.
Add start of textmate language grammar.Basic* grammar to start of with, this doesn't handle custom ops and doesn'thandle ops with regions. But useful enough to make reading the .mlir fileseasier.Followed the approach used for emacs & vim and placed in separate directoryunder utils.* I got a little bit carried away trying to handle attributes and tried to do some custom op printing handling, but finally abandoned it. Also first time writing a textmate grammar so I assume a lot can be improved :)PiperOrigin-RevId: 262985490