diff options
| author | bors <bors@rust-lang.org> | 2023-10-05 22:08:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-05 22:08:15 +0000 |
| commit | 54866a0df722061e0309a5b5a7aa9780a409d8b3 (patch) | |
| tree | e3aa50ae25d358ce591f2df903dbbeb5a51cac87 | |
| parent | 695c612489d54aa81f9817076819273bdc8aa64b (diff) | |
| parent | 6ca48d98c46885b27e04ac9bcfbb3b563282ac6c (diff) | |
| download | rust-54866a0df722061e0309a5b5a7aa9780a409d8b3.tar.gz rust-54866a0df722061e0309a5b5a7aa9780a409d8b3.zip | |
Auto merge of #15668 - connorskees:feat/close-backtick, r=Veykril
feat: add backtick to surrounding and auto-closing pairs Makes backticks always complete as a pair and also surround the current selection, similar to double quotes. This is useful primarily in the context of markdown doc comments, but is applied globally for simplicity. Closes https://github.com/rust-lang/rust-analyzer/issues/11381
| -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 51f0e65f4fd..1c348b63f1a 100644 --- a/editors/code/language-configuration.json +++ b/editors/code/language-configuration.json @@ -18,7 +18,8 @@ { "open": "[", "close": "]" }, { "open": "(", "close": ")" }, { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "/*", "close": " */" } + { "open": "/*", "close": " */" }, + { "open": "`", "close": "`", "notIn": ["string"] } ], "autoCloseBefore": ";:.,=}])> \n\t", "surroundingPairs": [ @@ -27,7 +28,8 @@ ["(", ")"], ["<", ">"], ["\"", "\""], - ["'", "'"] + ["'", "'"], + ["`", "`"] ], "indentationRules": { "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", |
