We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b381de0 + 6e1ab63 commit 1ba74a5Copy full SHA for 1ba74a5
snippets/language-elixir.cson
@@ -53,3 +53,25 @@
53
'test':
54
'prefix': 'test'
55
'body': 'test "$1" do\n\t$0\nend'
56
+'.text.elixir':
57
+ '<% inline %>':
58
+ 'prefix': '%'
59
+ 'body': '<% $0 %>'
60
+ '<%= replace %>':
61
+ 'prefix': '%='
62
+ 'body': '<%= $0 %>'
63
+ '<%% quotation %>':
64
+ 'prefix': '%%'
65
+ 'body': '<%% $0 %>'
66
+ '<%# comment %>':
67
+ 'prefix': '%#'
68
+ 'body': '<%# $0 %>'
69
+ 'if':
70
+ 'prefix': 'if'
71
+ 'body': '<%= if ${1:true} do %>\n\t$0\n<% end %>'
72
+ 'if/else':
73
+ 'prefix': 'ife'
74
+ 'body': '<%= if ${1:true} do %>\n\t$2\n<% else %>\n\t$0\n<% end %>'
75
+ 'for':
76
+ 'prefix': 'for'
77
+ 'body': '<%= for ${1:el} <- ${2:list} do %>\n\t$0\n<% end %>'
0 commit comments