From 6a0b58f938f9d904c3ead87234e03011b1428fb1 Mon Sep 17 00:00:00 2001 From: David Barbet Date: Mon, 28 Apr 2025 14:30:24 -0700 Subject: [PATCH] Enable angle bracket colorization for C# --- extensions/csharp/language-configuration.json | 18 ++++++++++++++++++ extensions/csharp/package.json | 9 ++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/extensions/csharp/language-configuration.json b/extensions/csharp/language-configuration.json index 7db6640f4c595..b25bc0acfee4d 100644 --- a/extensions/csharp/language-configuration.json +++ b/extensions/csharp/language-configuration.json @@ -76,6 +76,24 @@ "\"" ] ], + "colorizedBracketPairs": [ + [ + "{", + "}" + ], + [ + "[", + "]" + ], + [ + "(", + ")" + ], + [ + "<", + ">" + ] + ], "folding": { "markers": { "start": "^\\s*#region\\b", diff --git a/extensions/csharp/package.json b/extensions/csharp/package.json index d3d4f262d9f85..c45029ddb13d9 100644 --- a/extensions/csharp/package.json +++ b/extensions/csharp/package.json @@ -40,7 +40,14 @@ "path": "./syntaxes/csharp.tmLanguage.json", "tokenTypes": { "meta.interpolation": "other" - } + }, + "unbalancedBracketScopes": [ + "keyword.operator.relational.cs", + "keyword.operator.arrow.cs", + "punctuation.accessor.pointer.cs", + "keyword.operator.bitwise.shift.cs", + "keyword.operator.assignment.compound.bitwise.cs" + ] } ], "snippets": [