vimrc/sources_non_forked/vim-snippets/snippets/reason.snippets

39 lines
405 B
Text
Raw Normal View History

2017-11-24 13:59:41 +00:00
snippet doc
/*
${0}
*/
snippet let
let ${1} = ${0};
snippet fn
let ${1} => {
${0}
};
snippet fn0
let ${1} () => {
${0}
};
snippet fun
fun ${1} => ${0}
snippet ty
type ${1} = ${1};
snippet mod
module ${1} = {
${0}
};
snippet modty
module type ${1} = {
${0}
};
snippet sw
switch ${1} {
| ${2} => ${0}
}
snippet |
| ${1} => ${0}
snippet if
if (${1}) {
${2}
} else {
${0}
}