[Mlir-commits] [mlir] [mlir][vscode] Add angle bracket support to MLIR language configuration (PR #176602)

Jacques Pienaar llvmlistbot at llvm.org
Sat Jan 17 14:40:49 PST 2026


https://github.com/jpienaar created https://github.com/llvm/llvm-project/pull/176602

Add angle brackets (<>) to brackets, autoClosingPairs, and surroundingPairs for better editing of types like tensor<3xf32>. Also add colorizedBracketPairs for visual distinction between nested bracket types.

>From 6ef2f081146d22bfe980d2a232815e8634085481 Mon Sep 17 00:00:00 2001
From: Jacques Pienaar <jacques+gh at japienaar.info>
Date: Sat, 17 Jan 2026 22:37:31 +0000
Subject: [PATCH] [mlir][vscode] Add angle bracket support to MLIR language
 configuration

Add angle brackets (<>) to brackets, autoClosingPairs, and surroundingPairs
for better editing of types like tensor<3xf32>. Also add colorizedBracketPairs
for visual distinction between nested bracket types.
---
 mlir/utils/vscode/language-configuration.json | 11 ++++++++++-
 mlir/utils/vscode/package.json                |  2 +-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/mlir/utils/vscode/language-configuration.json b/mlir/utils/vscode/language-configuration.json
index 8a34cc83a53cb..ded00a40bab70 100644
--- a/mlir/utils/vscode/language-configuration.json
+++ b/mlir/utils/vscode/language-configuration.json
@@ -5,18 +5,27 @@
     "brackets": [
         ["{", "}"],
         ["[", "]"],
-        ["(", ")"]
+        ["(", ")"],
+        ["<", ">"]
+    ],
+    "colorizedBracketPairs": [
+        ["{", "}"],
+        ["[", "]"],
+        ["(", ")"],
+        ["<", ">"]
     ],
     "autoClosingPairs": [
         ["{", "}"],
         ["[", "]"],
         ["(", ")"],
+        ["<", ">"],
         ["\"", "\""]
     ],
     "surroundingPairs": [
         ["{", "}"],
         ["[", "]"],
         ["(", ")"],
+        ["<", ">"],
         ["\"", "\""]
     ]
 }
diff --git a/mlir/utils/vscode/package.json b/mlir/utils/vscode/package.json
index 0f419279f2346..2087330f4a1ad 100644
--- a/mlir/utils/vscode/package.json
+++ b/mlir/utils/vscode/package.json
@@ -2,7 +2,7 @@
   "name": "vscode-mlir",
   "displayName": "MLIR",
   "description": "MLIR Language Extension",
-  "version": "0.0.12",
+  "version": "0.0.13",
   "publisher": "llvm-vs-code-extensions",
   "homepage": "https://mlir.llvm.org/",
   "icon": "icon.png",



More information about the Mlir-commits mailing list