Skip to content

Commit

Permalink
Auto merge of #17051 - roife:auto-closing-for-triple-backticks, r=Vey…
Browse files Browse the repository at this point in the history
…kril

fix: support auto-closing for triple backticks

It might fix #16051, see rust-lang/rust-analyzer#16051 (comment)
  • Loading branch information
bors committed Apr 13, 2024
2 parents 85542e0 + 4346bbc commit e1d7ce7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editors/code/language-configuration.json
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 e1d7ce7

Please sign in to comment.