diff options
| author | bors <bors@rust-lang.org> | 2024-04-13 19:22:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-04-13 19:22:03 +0000 |
| commit | e1d7ce71ae2861b28f3dc30656733a27b452a397 (patch) | |
| tree | e576628e31a9404c6e5bb1972345fadc7a0b160c | |
| parent | 85542e0de3e1146677e9dd2d0b3e3b0cbbf8e4d0 (diff) | |
| parent | 4346bbcd92aaba9cc3edb8a4721c0d170bb81493 (diff) | |
| download | rust-e1d7ce71ae2861b28f3dc30656733a27b452a397.tar.gz rust-e1d7ce71ae2861b28f3dc30656733a27b452a397.zip | |
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
| -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": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", |
