Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #17051 - roife:auto-closing-for-triple-backticks, r=Veykril
fix: support auto-closing for triple backticks It might fix #16051, see https://github.com/rust-lang/rust-analyzer/issues/16051#issuecomment-2042606030
bors 2024-04-14
parent 85542e0 · parent 4346bbc · commit e1d7ce7
-rw-r--r--editors/code/language-configuration.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json
index bdae0e6ba9..6619d0c85c 100644
--- a/editors/code/language-configuration.json
+++ b/editors/code/language-configuration.json
@@ -19,7 +19,8 @@
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "/*", "close": " */", "notIn": ["string"] },
- { "open": "`", "close": "`", "notIn": ["string"] }
+ { "open": "`", "close": "`", "notIn": ["string"] },
+ { "open": "```", "close": "```", "notIn": ["string"] }
],
"autoCloseBefore": ";:.,=}])> \n\t",
"surroundingPairs": [
@@ -29,7 +30,8 @@
["<", ">"],
["\"", "\""],
["'", "'"],
- ["`", "`"]
+ ["`", "`"],
+ ["```", "```"]
],
"indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",