Skip to content

Commit

Permalink
Add MLIR grammar (#4610)
Browse files Browse the repository at this point in the history
* Add MLIR grammar

* Add MLIR grammar

* mend
  • Loading branch information
jpienaar authored and lildude committed Aug 19, 2019
1 parent 9677d1a commit 5c87522
Show file tree
Hide file tree
Showing 10 changed files with 1,321 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,9 @@
[submodule "vendor/grammars/mercury-tmlanguage"]
path = vendor/grammars/mercury-tmlanguage
url = https://github.com/sebgod/mercury-tmlanguage
[submodule "vendor/grammars/mlir-grammar"]
path = vendor/grammars/mlir-grammar
url = https://github.com/jpienaar/mlir-grammar
[submodule "vendor/grammars/monkey"]
path = vendor/grammars/monkey
url = https://github.com/gingerbeardman/monkey.tmbundle
Expand Down
2 changes: 2 additions & 0 deletions grammars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ vendor/grammars/mediawiki.tmbundle:
- text.html.mediawiki
vendor/grammars/mercury-tmlanguage:
- source.mercury
vendor/grammars/mlir-grammar:
- source.mlir
vendor/grammars/monkey:
- source.monkey
vendor/grammars/moonscript-tmbundle:
Expand Down
7 changes: 7 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2926,6 +2926,13 @@ MAXScript:
tm_scope: source.maxscript
ace_mode: text
language_id: 217
MLIR:
type: programming
extensions:
- ".mlir"
tm_scope: source.mlir
ace_mode: text
language_id: 448253929
MQL4:
type: programming
color: "#62A8D6"
Expand Down
457 changes: 457 additions & 0 deletions samples/MLIR/const-fold.mlir

Large diffs are not rendered by default.

Loading

0 comments on commit 5c87522

Please sign in to comment.