Skip to content

Commit ae11f6e

Browse files
committed
Change tab trigger for 'function' and 'anonymous function'
1 parent 9844508 commit ae11f6e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ for (var ${1:prop} in ${2:obj}) {
179179
180180
## Function
181181
182-
### [fu] function
182+
### [fn] function
183183
184184
```javascript
185185
function ${1:methodName} (${2:arguments}) {
186186
${0:// body...}
187187
}
188188
```
189189
190-
### [fn] anonymous function
190+
### [afn] anonymous function
191191
192192
```javascript
193193
function (${1:arguments}) {

function-anonymous.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function (${1:arguments}) {
44
${0:// body...}
55
}
66
]]></content>
7-
<tabTrigger>fn</tabTrigger>
7+
<tabTrigger>afn</tabTrigger>
88
<scope>source.js</scope>
99
<description>anonymous function</description>
1010
</snippet>

function.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function ${1:methodName} (${2:arguments}) {
44
${0:// body...}
55
}
66
]]></content>
7-
<tabTrigger>fu</tabTrigger>
7+
<tabTrigger>fn</tabTrigger>
88
<scope>source.js</scope>
99
<description>function</description>
1010
</snippet>

0 commit comments

Comments
 (0)