Skip to content

Commit b06c95a

Browse files
committed
Change tabs to spacs in macro_rules snippet
1 parent c61bb6b commit b06c95a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

crates/ide_completion/src/completions/snippet.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,17 @@ fn ${1:feature}() {
9494
item.lookup_by("tfn");
9595
item.add_to(acc);
9696

97-
let item = snippet(ctx, cap, "macro_rules", "macro_rules! $1 {\n\t($2) => {\n\t\t$0\n\t};\n}");
97+
let item = snippet(
98+
ctx,
99+
cap,
100+
"macro_rules",
101+
"\
102+
macro_rules! $1 {
103+
($2) => {
104+
$0
105+
};
106+
}",
107+
);
98108
item.add_to(acc);
99109
}
100110

0 commit comments

Comments
 (0)