fix: support auto-closing for triple backticks

This commit is contained in:
roife 2024-04-11 18:46:22 +08:00
parent 657b33b0cb
commit 4346bbcd92

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": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",