File tree Expand file tree Collapse file tree 1 file changed +28
-28
lines changed
Expand file tree Collapse file tree 1 file changed +28
-28
lines changed Original file line number Diff line number Diff line change 11{
2- "Function" : {
3- "prefix" : [
4- " fn"
5- ],
6- "body" : [
7- " fn(${1}) { ${0} }"
8- ],
9- "description" : " anonymous function"
10- },
112 "Public Function" : {
123 "prefix" : [
134 " pub" ,
2011 ],
2112 "description" : " public function"
2213 },
14+ "Private Function" : {
15+ "prefix" : [
16+ " fn"
17+ ],
18+ "body" : [
19+ " fn ${1:function_name}(${2}) -> ${3:Nil} {" ,
20+ " \t ${0:todo}" ,
21+ " }"
22+ ],
23+ "description" : " private function"
24+ },
2325 "Test Function" : {
2426 "prefix" : [
2527 " test"
4143 ],
4244 "description" : " anonymous function"
4345 },
44- "Let Binding " : {
46+ "Let assignment " : {
4547 "prefix" : [
4648 " let"
4749 ],
4850 "body" : [
4951 " let ${1} = ${0}"
5052 ],
51- "description" : " let binding "
53+ "description" : " let assignment "
5254 },
53- "Assert Binding " : {
55+ "Let Assert assignment " : {
5456 "prefix" : [
55- " as "
57+ " leta "
5658 ],
5759 "body" : [
58- " assert ${1} = ${0}"
60+ " let assert ${1} = ${0}"
5961 ],
60- "description" : " assert binding "
62+ "description" : " let assert assignment "
6163 },
62- "Try Binding " : {
64+ "Use expression " : {
6365 "prefix" : [
64- " tr "
66+ " use "
6567 ],
6668 "body" : [
67- " try ${1} = ${0}"
69+ " use ${1} <- ${0}"
6870 ],
69- "description" : " try binding "
71+ "description" : " use expression "
7072 },
7173 "Case Expression" : {
7274 "prefix" : [
103105 ],
104106 "description" : " public type declaration"
105107 },
106- "External Function " : {
108+ "External attribute " : {
107109 "prefix" : [
108- " exfn" ,
109- " external" ,
110- " external fn"
110+ " external"
111111 ],
112112 "body" : [
113- " external fn ${1:function_name}( ${2}) -> ${3:Nil} = \" $4 \" \" $0 \" "
113+ " @ external( ${1:erlang}, \" ${2}\" , \" ${0} \" ) "
114114 ],
115- "description" : " external function "
115+ "description" : " external attribute "
116116 },
117117 "Public External Function" : {
118118 "prefix" : [
158158 },
159159 "Tuple" : {
160160 "prefix" : [
161- " tup " ,
161+ " # " ,
162162 " tuple"
163163 ],
164164 "body" : [
165- " tuple (${0})"
165+ " # (${0})"
166166 ],
167- "description" : " tuple()"
167+ "description" : " tuple # ()"
168168 },
169169 "Block" : {
170170 "prefix" : [
You can’t perform that action at this time.
0 commit comments