mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
feat: add backtick to surrounding and auto-closing pairs
This commit is contained in:
parent
d3cc3bc00e
commit
6ca48d98c4
1 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,8 @@
|
||||||
{ "open": "[", "close": "]" },
|
{ "open": "[", "close": "]" },
|
||||||
{ "open": "(", "close": ")" },
|
{ "open": "(", "close": ")" },
|
||||||
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
||||||
{ "open": "/*", "close": " */" }
|
{ "open": "/*", "close": " */" },
|
||||||
|
{ "open": "`", "close": "`", "notIn": ["string"] }
|
||||||
],
|
],
|
||||||
"autoCloseBefore": ";:.,=}])> \n\t",
|
"autoCloseBefore": ";:.,=}])> \n\t",
|
||||||
"surroundingPairs": [
|
"surroundingPairs": [
|
||||||
|
@ -27,7 +28,8 @@
|
||||||
["(", ")"],
|
["(", ")"],
|
||||||
["<", ">"],
|
["<", ">"],
|
||||||
["\"", "\""],
|
["\"", "\""],
|
||||||
["'", "'"]
|
["'", "'"],
|
||||||
|
["`", "`"]
|
||||||
],
|
],
|
||||||
"indentationRules": {
|
"indentationRules": {
|
||||||
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
|
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",
|
||||||
|
|
Loading…
Reference in a new issue