Skip to content

Commit

Permalink
Auto merge of rust-lang#17051 - roife:auto-closing-for-triple-backtic…
Browse files Browse the repository at this point in the history
…ks, r=Veykril

fix: support auto-closing for triple backticks

It might fix rust-lang#16051, see rust-lang/rust-analyzer#16051 (comment)
  • Loading branch information
bors committed Apr 13, 2024
2 parents 5339f71 + f685257 commit 289e5f0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -29,7 +30,8 @@
["<", ">"],
["\"", "\""],
["'", "'"],
["`", "`"]
["`", "`"],
["```", "```"]
],
"indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
Expand Down

0 comments on commit 289e5f0

Please sign in to comment.