From 4346bbcd92aaba9cc3edb8a4721c0d170bb81493 Mon Sep 17 00:00:00 2001 From: roife Date: Thu, 11 Apr 2024 18:46:22 +0800 Subject: [PATCH] fix: support auto-closing for triple backticks --- editors/code/language-configuration.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json index bdae0e6ba9..6619d0c85c 100644 --- a/editors/code/language-configuration.json +++ b/editors/code/language-configuration.json @@ -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": [ @@ -29,7 +30,8 @@ ["<", ">"], ["\"", "\""], ["'", "'"], - ["`", "`"] + ["`", "`"], + ["```", "```"] ], "indentationRules": { "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",