Skip to content

Commit 289e5f0

Browse files
committed
Auto merge of rust-lang#17051 - roife:auto-closing-for-triple-backticks, r=Veykril
fix: support auto-closing for triple backticks It might fix rust-lang#16051, see rust-lang/rust-analyzer#16051 (comment)
2 parents 5339f71 + f685257 commit 289e5f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/rust-analyzer/editors/code/language-configuration.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
{ "open": "(", "close": ")" },
2020
{ "open": "\"", "close": "\"", "notIn": ["string"] },
2121
{ "open": "/*", "close": " */", "notIn": ["string"] },
22-
{ "open": "`", "close": "`", "notIn": ["string"] }
22+
{ "open": "`", "close": "`", "notIn": ["string"] },
23+
{ "open": "```", "close": "```", "notIn": ["string"] }
2324
],
2425
"autoCloseBefore": ";:.,=}])> \n\t",
2526
"surroundingPairs": [
@@ -29,7 +30,8 @@
2930
["<", ">"],
3031
["\"", "\""],
3132
["'", "'"],
32-
["`", "`"]
33+
["`", "`"],
34+
["```", "```"]
3335
],
3436
"indentationRules": {
3537
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",

0 commit comments

Comments
 (0)