mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Change tabs to spacs in macro_rules snippet
This commit is contained in:
parent
c61bb6be8c
commit
b06c95aeda
1 changed files with 11 additions and 1 deletions
|
@ -94,7 +94,17 @@ fn ${1:feature}() {
|
|||
item.lookup_by("tfn");
|
||||
item.add_to(acc);
|
||||
|
||||
let item = snippet(ctx, cap, "macro_rules", "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}");
|
||||
let item = snippet(
|
||||
ctx,
|
||||
cap,
|
||||
"macro_rules",
|
||||
"\
|
||||
macro_rules! $1 {
|
||||
($2) => {
|
||||
$0
|
||||
};
|
||||
}",
|
||||
);
|
||||
item.add_to(acc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue