Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #12042 - jonas-schievink:remove-angle-brackets-from-lang-config, r=jonas-schievink
fix: remove angle brackets from language configuration
This should fix https://github.com/rust-lang/rust-analyzer/issues/12034
It looks like we shouldn't add any characters here that can be ambiguous, because it can make the editor highlight unrelated characters. This needs a parser to be correct, so the language server is the right place, not the editor. Upstream LSP feature request: https://github.com/microsoft/language-server-protocol/issues/672 (but it might be possible to implement this as an extension today, as long as that doesn't conflict with the built-in highlighting).
| -rw-r--r-- | editors/code/language-configuration.json | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json index 2d772952a8..cf7b20eb79 100644 --- a/editors/code/language-configuration.json +++ b/editors/code/language-configuration.json @@ -6,8 +6,7 @@ "brackets": [ ["{", "}"], ["[", "]"], - ["(", ")"], - ["<", ">"] + ["(", ")"] ], "colorizedBracketPairs": [ ["{", "}"], |