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
This commit is contained in:
bors 2024-04-13 19:22:03 +00:00
commit e1d7ce71ae

View file

@ -19,7 +19,8 @@
{ "open": "(", "close": ")" }, { "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] }, { "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "/*", "close": " */", "notIn": ["string"] }, { "open": "/*", "close": " */", "notIn": ["string"] },
{ "open": "`", "close": "`", "notIn": ["string"] } { "open": "`", "close": "`", "notIn": ["string"] },
{ "open": "```", "close": "```", "notIn": ["string"] }
], ],
"autoCloseBefore": ";:.,=}])> \n\t", "autoCloseBefore": ";:.,=}])> \n\t",
"surroundingPairs": [ "surroundingPairs": [
@ -29,7 +30,8 @@
["<", ">"], ["<", ">"],
["\"", "\""], ["\"", "\""],
["'", "'"], ["'", "'"],
["`", "`"] ["`", "`"],
["```", "```"]
], ],
"indentationRules": { "indentationRules": {
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",