From a6fac0aa29a9bb9ca1b903599767e1b75aa951ad Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Tue, 12 Nov 2019 09:30:08 -0800 Subject: [PATCH] Update textmate syntax file Allow comments in more places and fix function params. PiperOrigin-RevId: 279986797 --- mlir/utils/textmate/mlir.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mlir/utils/textmate/mlir.json b/mlir/utils/textmate/mlir.json index a7d4690..bc9c18b 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", -- 2.7.4