1
0
Fork 0
mirror of synced 2024-12-29 01:53:21 -05:00
ultimate-vim/sources_non_forked_fallback/vim-snippets/UltiSnips/erlang.snippets

25 lines
624 B
Text
Raw Normal View History

2012-08-16 23:41:25 -04:00
###########################################################################
# TEXTMATE SNIPPETS #
###########################################################################
priority -50
2012-08-16 23:41:25 -04:00
snippet pat "Case:Receive:Try Clause"
2015-02-04 05:43:54 -05:00
${1:pattern}${2: when ${3:guard}} ->
2012-08-16 23:41:25 -04:00
${4:body}
endsnippet
2015-02-04 05:43:54 -05:00
snippet mod "Module Directive" b
-module(${1:`!p snip.rv = snip.basename or "module"`}).
2012-08-16 23:41:25 -04:00
endsnippet
2015-02-04 05:43:54 -05:00
snippet || "List Comprehension"
[${1:X} || ${2:X} <- ${3:List}${4:, gen}]
endsnippet
snippet gen "Generator Expression"
${1:X} <- ${2:List}${3:, gen}
2012-08-16 23:41:25 -04:00
endsnippet
# vim:ft=snippets: