diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2019-11-12 09:30:08 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-12 09:30:41 -0800 |
| commit | a6fac0aa29a9bb9ca1b903599767e1b75aa951ad (patch) | |
| tree | 7227eb07b75fef142a688f77de40ad55a395f7f8 | |
| parent | 0e2affdf5946ef457809fb7afcb16547388c58b9 (diff) | |
| download | bcm5719-llvm-a6fac0aa29a9bb9ca1b903599767e1b75aa951ad.tar.gz bcm5719-llvm-a6fac0aa29a9bb9ca1b903599767e1b75aa951ad.zip | |
Update textmate syntax file
Allow comments in more places and fix function params.
PiperOrigin-RevId: 279986797
| -rw-r--r-- | mlir/utils/textmate/mlir.json | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mlir/utils/textmate/mlir.json b/mlir/utils/textmate/mlir.json index a7d4690c995..bc9c18b747c 100644 --- a/mlir/utils/textmate/mlir.json +++ b/mlir/utils/textmate/mlir.json @@ -105,6 +105,9 @@ }, "patterns" : [ { + "include" : "#comment" + }, + { "include" : "#branch_target" }, { @@ -274,6 +277,9 @@ }, "patterns" : [ { + "include" : "#comment" + }, + { "include" : "#attributes" }, { @@ -332,8 +338,8 @@ "name" : "meta.attributes.mlir" }, "function_params" : { - "end" : ")", - "begin" : "(", + "end" : "\\)", + "begin" : "\\(", "patterns" : [ { "include" : "#identifier" @@ -344,7 +350,6 @@ ] } }, - "scope" : "mlir", "patterns" : [ { "match" : "\\b(module)\\b", |

