Skip to content

Commit 54866a0

Browse files
committed
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 rust-lang/rust-analyzer#11381
2 parents 695c612 + 6ca48d9 commit 54866a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

editors/code/language-configuration.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
{ "open": "[", "close": "]" },
1919
{ "open": "(", "close": ")" },
2020
{ "open": "\"", "close": "\"", "notIn": ["string"] },
21-
{ "open": "/*", "close": " */" }
21+
{ "open": "/*", "close": " */" },
22+
{ "open": "`", "close": "`", "notIn": ["string"] }
2223
],
2324
"autoCloseBefore": ";:.,=}])> \n\t",
2425
"surroundingPairs": [
@@ -27,7 +28,8 @@
2728
["(", ")"],
2829
["<", ">"],
2930
["\"", "\""],
30-
["'", "'"]
31+
["'", "'"],
32+
["`", "`"]
3133
],
3234
"indentationRules": {
3335
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",

0 commit comments

Comments
 (0)