commit
935a6bab54
@ -73,7 +73,7 @@ endsnippet
|
|||||||
|
|
||||||
snippet ecl "...extern crate log;" b
|
snippet ecl "...extern crate log;" b
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet mod "A module" b
|
snippet mod "A module" b
|
||||||
@ -83,16 +83,16 @@ mod ${1:`!p snip.rv = snip.basename.lower() or "name"`} {
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet crate "Create header information" b
|
snippet crate "Create header information" b
|
||||||
// Crate ID
|
// Crate name
|
||||||
#![crate_id = "${1:crate_name}#${2:0.0.1}"]
|
#![crate_name = "${1:crate_name}"]
|
||||||
|
|
||||||
// Additional metadata attributes
|
// Additional metadata attributes
|
||||||
#![desc = "${3:Descrption.}"]
|
#![desc = "${2:Descrption.}"]
|
||||||
#![license = "${4:BSD}"]
|
#![license = "${3:BSD}"]
|
||||||
#![comment = "${5:Comment.}"]
|
#![comment = "${4:Comment.}"]
|
||||||
|
|
||||||
// Specify the output type
|
// Specify the output type
|
||||||
#![crate_type = "${6:lib}"]
|
#![crate_type = "${5:lib}"]
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet allow "#[allow(..)]" b
|
snippet allow "#[allow(..)]" b
|
||||||
|
@ -34,20 +34,20 @@ snippet ec
|
|||||||
extern crate ${1:sync};
|
extern crate ${1:sync};
|
||||||
snippet ecl
|
snippet ecl
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
snippet mod
|
snippet mod
|
||||||
mod ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
|
mod ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} {
|
||||||
${0}
|
${0}
|
||||||
} /* $1 */
|
} /* $1 */
|
||||||
snippet crate
|
snippet crate
|
||||||
// Crate ID
|
// Crate name
|
||||||
#![crate_id = "${1:crate_name}#${2:0.0.1}"]
|
#![crate_name = "${1:crate_name}"]
|
||||||
// Additional metadata attributes
|
// Additional metadata attributes
|
||||||
#![desc = "${3:Descrption.}"]
|
#![desc = "${2:Descrption.}"]
|
||||||
#![license = "${4:BSD}"]
|
#![license = "${3:BSD}"]
|
||||||
#![comment = "${5:Comment.}"]
|
#![comment = "${4:Comment.}"]
|
||||||
// Specify the output type
|
// Specify the output type
|
||||||
#![crate_type = "${6:lib}"]
|
#![crate_type = "${5:lib}"]
|
||||||
snippet allow
|
snippet allow
|
||||||
#[allow(${1:unused_variable})]
|
#[allow(${1:unused_variable})]
|
||||||
snippet feat
|
snippet feat
|
||||||
|
Loading…
Reference in New Issue
Block a user