Update textmate syntax file
authorJacques Pienaar <jpienaar@google.com>
Tue, 12 Nov 2019 17:30:08 +0000 (09:30 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 12 Nov 2019 17:30:41 +0000 (09:30 -0800)
Allow comments in more places and fix function params.

PiperOrigin-RevId: 279986797

mlir/utils/textmate/mlir.json

index a7d4690..bc9c18b 100644 (file)
       },
       "patterns" : [
         {
+          "include" : "#comment"
+        },
+        {
           "include" : "#branch_target"
         },
         {
       },
       "patterns" : [
         {
+          "include" : "#comment"
+        },
+        {
           "include" : "#attributes"
         },
         {
       "name" : "meta.attributes.mlir"
     },
     "function_params" : {
-      "end" : ")",
-      "begin" : "(",
+      "end" : "\\)",
+      "begin" : "\\(",
       "patterns" : [
         {
           "include" : "#identifier"
       ]
     }
   },
-  "scope" : "mlir",
   "patterns" : [
     {
       "match" : "\\b(module)\\b",