Skip to content

Commit 57942e5

Browse files
committed
Merge pull request scrooloose#8 from endel/master
Add ActionScript snippets.
2 parents 6c1bd73 + bf60195 commit 57942e5

24 files changed

+136
-0
lines changed

actionscript/case.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
case ${1:occurr}:
2+
${2:/* TODO */}
3+
break;${3}

actionscript/class/basic.snippet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* class $2
3+
* @author `g:snips_author`
4+
*/
5+
${1:public} class ${2:`Snippet_JavaClassNameFromFilename()`} {
6+
7+
/**
8+
* Constructor for $2
9+
*/
10+
public $2(${3}){
11+
${4:/* constructor */}
12+
}
13+
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* class $2
3+
* @author `g:snips_author`
4+
*/
5+
${1:public} class ${2:`Snippet_JavaClassNameFromFilename()`} extends ${3:Object} ${4:implements EventDispatcher} {
6+
7+
/**
8+
* Constructor for $2
9+
*/
10+
public function $2(${5}){
11+
${6}
12+
}
13+
14+
}

actionscript/const.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
${1:public} static const ${2:CONSTANT} : ${3:Type} = ${4:value};${5}

actionscript/do.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
do {
2+
${2:/* TODO */}
3+
} while (${1:condition});

actionscript/else.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
else {
2+
${1:/* TODO */}
3+
} ${2}

actionscript/embed.snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Embed(source = ${1:source}, mimeType = "${2:application/octet-stream}"${3:, })]

actionscript/for.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
for (var ${2:i}=0; $2 < ${1:count}; $2${3:++}) {
2+
${4:/* TODO */}
3+
}

actionscript/foreach.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
for each (var ${1:item} : ${2:*} in ${3:list}) {
2+
${4:/* TODO */}
3+
}

actionscript/func.snippet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
${1:public} function ${2:method}(${3}) : ${4:void} {
2+
${5:/* TODO */}
3+
}

0 commit comments

Comments
 (0)