Unnamed repository; edit this file 'description' to name the repository.
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
bors 2023-10-06
parent 695c612 · parent 6ca48d9 · commit 54866a0
-rw-r--r--editors/code/language-configuration.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json
index 51f0e65f4f..1c348b63f1 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": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",