diff options
| author | roife <roifewu@gmail.com> | 2024-04-11 18:46:22 +0800 |
|---|---|---|
| committer | roife <roifewu@gmail.com> | 2024-04-11 18:46:22 +0800 |
| commit | 4346bbcd92aaba9cc3edb8a4721c0d170bb81493 (patch) | |
| tree | f0ba252a52b7b0bef1fcd8db70ed7a49b3cf4f9e | |
| parent | 657b33b0cb9bd49085202e91ad5b4676532c9140 (diff) | |
| download | rust-4346bbcd92aaba9cc3edb8a4721c0d170bb81493.tar.gz rust-4346bbcd92aaba9cc3edb8a4721c0d170bb81493.zip | |
fix: support auto-closing for triple backticks
| -rw-r--r-- | editors/code/language-configuration.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json index bdae0e6ba9b..6619d0c85c5 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": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", |
