Merge pull request #683 from kernelrain/master
Fixing nested snippet for Rust `let`/`letm`
This commit is contained in:
commit
9674db7849
@ -31,10 +31,14 @@ snippet main "Main function"
|
|||||||
pub fn main() {
|
pub fn main() {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
snippet let "let variable declaration"
|
snippet let "let variable declaration with type inference"
|
||||||
let ${1:name}${2:: ${3:type}} = ${4};
|
let ${1} = ${2};
|
||||||
snippet letm "let mut variable declaration"
|
snippet lett "let variable declaration with explicit type annotation"
|
||||||
let mut ${1:name}${2:: ${3:type}} = ${4};
|
let ${1}: ${2} = ${3};
|
||||||
|
snippet letm "let mut variable declaration with type inference"
|
||||||
|
let ${1} = ${2};
|
||||||
|
snippet lettm "let mut variable declaration with explicit type annotation"
|
||||||
|
let ${1}: ${2} = ${3};
|
||||||
snippet pln "println!"
|
snippet pln "println!"
|
||||||
println!("${1}");
|
println!("${1}");
|
||||||
snippet pln, "println! with format param"
|
snippet pln, "println! with format param"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user