Skip to content

Commit 03cbca4

Browse files
committed
feat: print rust
1 parent f8d8ae4 commit 03cbca4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: snippets/rust_print.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ println!("$1 {}", $1);
44
const description = "";
55

66
module.exports = {
7-
prefix: ["logg","print"],
8-
type: ["javascript"],
7+
prefix: ["logg","!print","csl"],
8+
type: ["rust"],
99
description: description || body,
1010
body: body.trim(),
1111
};

Diff for: snippets/rust_print_message.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const body = `
2+
println!("$1");
3+
`;
4+
const description = "";
5+
6+
module.exports = {
7+
prefix: ["logm", "!printm"],
8+
type: ["rust"],
9+
description: description || body,
10+
body: body.trim(),
11+
};

0 commit comments

Comments
 (0)