Skip to content

Commit 807b257

Browse files
committed
finalized all snippets
1 parent 544e4b8 commit 807b257

20 files changed

+69
-55
lines changed

snippets/cfml/cfc.sublime-snippet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* ${1:index}
5-
*/
6-
component{
4+
* ${1:index}
5+
*/
6+
component accessors="true"{
77
88
/**
9-
* Constructor
10-
*/
9+
* Constructor
10+
*/
1111
function init(){
1212
1313
return this;

snippets/cfml/function.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* ${1:index}
5-
*/
4+
* ${1:index}
5+
*/
66
function ${1:}(){
77
88
}

snippets/cfml/property.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* ${1}
5-
*/
4+
* ${1}
5+
*/
66
property name="${1}";
77
]]></content>
88
<tabTrigger>prop</tabTrigger>

snippets/handlers/action.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* ${1:index}
5-
*/
4+
* ${1:index}
5+
*/
66
function ${1:index}( event, rc, prc ){
77
${0}
88
event.setView( "${TM_FILENAME/\.cfc//}/${1}" );

snippets/handlers/aroundHandler.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes an around handler
5-
*/
4+
* Executes an around handler
5+
*/
66
function aroundHandler( event, rc, prc, targetAction, eventArguments ){
77
// Prepare action arguments
88
var args = { event = arguments.event, rc = arguments.rc, prc = arguments.prc };

snippets/handlers/onerror.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes when an exception occurs in this handler
5-
*/
4+
* Executes when an exception occurs in this handler
5+
*/
66
function onError( event, rc, prc, faultAction, exception, eventArguments ){
77
${0}
88
}

snippets/handlers/oninvalidhttp.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes when an invalid HTTP method is called
5-
*/
4+
* Executes when an invalid HTTP method is called
5+
*/
66
function onInvalidHTTPMethod( event, rc, prc, faultAction, eventArguments ){
77
${0}
88
}

snippets/handlers/onmissingaction.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes when you execute an action that is missing
5-
*/
4+
* Executes when you execute an action that is missing
5+
*/
66
function onMissingAction( event, rc, prc, missingAction, eventArguments ){
77
${0}
88
}

snippets/handlers/postaction.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes after your '${1} action only
5-
*/
4+
* Executes after your '${1} action only
5+
*/
66
any function post${1}( event, rc, prc, eventArguments ){
77
${0}
88
}

snippets/handlers/posthandler.sublime-snippet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
33
/**
4-
* Executes after all handler actions
5-
*/
4+
* Executes after all handler actions
5+
*/
66
any function postHandler( event, rc, prc, action, eventArguments ){
77
${0}
88
}

0 commit comments

Comments
 (0)