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

37 lines
394 B
Text
Raw Normal View History

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