Re-order JS for snippets

Now that we have separated the two `for` loop snippet triggers by
changing the one that counts down from "for" to "ford", it feels more
and more like "ford" is a variant of "for" so I am moving it after it in
the file. Also, alphabetical.
This commit is contained in:
Joe Lencioni 2014-01-06 22:21:50 -08:00
parent 23d7ded754
commit 2f66a3fc2b

View File

@ -32,14 +32,14 @@ ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
endsnippet endsnippet
snippet ford "for (...) {...} (counting down, faster)" b snippet for "for (...) {...} (counting up)" b
for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) { for (var ${1:i} = 0, ${2:len} = ${3:Things.length}; $1 < $2; $1++) {
${VISUAL}$0 ${VISUAL}$0
} }
endsnippet endsnippet
snippet for "for (...) {...} (counting up)" b snippet ford "for (...) {...} (counting down, faster)" b
for (var ${1:i} = 0, ${2:len} = ${3:Things.length}; $1 < $2; $1++) { for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) {
${VISUAL}$0 ${VISUAL}$0
} }
endsnippet endsnippet