Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 1fb03b8

Browse files
author
Dean Sofer
committed
foreach and $eval
1 parent 7120bf4 commit 1fb03b8

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

‎Snippets/$eval.tmSnippet

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>content</key>
6+
<string>scope.\$eval($0);</string>
7+
<key>name</key>
8+
<string>$eval</string>
9+
<key>scope</key>
10+
<string>source.js</string>
11+
<key>tabTrigger</key>
12+
<string>eval</string>
13+
<key>uuid</key>
14+
<string>E63657EF-F3BE-4312-9786-CA2573B04CB8</string>
15+
</dict>
16+
</plist>

‎Snippets/forEach.tmSnippet

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>content</key>
6+
<string>angular.forEach(${1:values}, function(${2:value}, ${3:key}){
7+
$0
8+
});</string>
9+
<key>name</key>
10+
<string>forEach</string>
11+
<key>scope</key>
12+
<string>source.js</string>
13+
<key>tabTrigger</key>
14+
<string>foreach</string>
15+
<key>uuid</key>
16+
<string>2A7D544B-2A8C-4C45-A9EF-D08574E1FBDD</string>
17+
</dict>
18+
</plist>

‎info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<string>73FE8F19-35BA-4C5F-A3E4-4133E6066A42</string>
1010
<string>0282FB46-A1B4-4F0D-9921-6084B40BF8B3</string>
1111
<string>32FCDB03-A8CD-408C-AF18-56CBE6705C40</string>
12+
<string>E63657EF-F3BE-4312-9786-CA2573B04CB8</string>
13+
<string>2A7D544B-2A8C-4C45-A9EF-D08574E1FBDD</string>
1214
</array>
1315
<key>uuid</key>
1416
<string>169EEC8E-A42C-4C5A-90D7-00AA3F18283D</string>

0 commit comments

Comments
 (0)