[SVN] r10103 (JavaScript)
Thomas Aylott
oblivious at subtleGradient.com
Wed Jul 2 17:01:00 UTC 2008
Unifying the "for" snippets
diff --git "a/Snippets/for (in) {\342\200\246}.tmSnippet" "b/Snippets/for (in) {\342\200\246}.tmSnippet"
index d7e0848..b64dede 100644
--- "a/Snippets/for (in) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (in) {\342\200\246}.tmSnippet"
@@ -3,8 +3,8 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>for (var ${1:x} in ${2:Things}) {
- ${0:${1:x}}
+ <string>for (var ${1:thing} in ${2:Things}) {
+ $0${1:thing}
};</string>
<key>name</key>
<string>for (in) {…}</string>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
index b34c0f5..9408455 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246} (PPK).tmSnippet"
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for (var ${20:i}=0,${2:thing}; ${2:thing}=${1:Things}[${20:i}]; ${20:i}++){
- ${2:thing}$0
+ $0${2:thing}
};
</string>
<key>name</key>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
index 34e6b71..2853eb2 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246} (faster).tmSnippet"
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>for (var ${20:i} = ${1:Things}.length - 1; ${20:i} >= 0; ${20:i}--){
- ${100:${1:Things}[${20:i}]}$0
+ $0${100:${1:Things}[${20:i}]}
};</string>
<key>name</key>
<string>for (…) {…} (Improved Native For-Loop)</string>
diff --git "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet" "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
index 6208a16..852d3f5 100644
--- "a/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
+++ "b/Snippets/for (\342\200\246) {\342\200\246}.tmSnippet"
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>for (var ${20:i}=0; ${20:i} < ${1:Things}.length; ${20:i}++) {
- ${100:${1:Things}[${20:i}]}$0
+ $0${100:${1:Things}[${20:i}]}
};</string>
<key>name</key>
<string>for (…) {…}</string>
Changed:
U trunk/Review/Bundles/JavaScript.tmbundle/Snippets/for (…) {…} (PPK).tmSnippet
U trunk/Review/Bundles/JavaScript.tmbundle/Snippets/for (…) {…} (faster).tmSnippet
U trunk/Review/Bundles/JavaScript.tmbundle/Snippets/for (…) {…}.tmSnippet
U trunk/Review/Bundles/JavaScript.tmbundle/Snippets/for (in) {…}.tmSnippet
More information about the textmate-dev
mailing list