1
0
Fork 0
mirror of synced 2024-11-29 20:25:34 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/reason.snippets

37 lines
394 B
Text
Raw Normal View History

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