Added descriptions for duplicated snippet names.

This is to make the snippets a little more compatible with
neosnippets.
This commit is contained in:
Christian Höltje 2012-10-28 02:07:13 -04:00
parent 8403968b1f
commit 699250051d
3 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ snippet try
${3} ${3}
} }
# For Loop (same as c.snippet) # For Loop (same as c.snippet)
snippet for snippet for for (..) {..}
for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) { for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
${4:/* code */} ${4:/* code */}
} }

View File

@ -26,7 +26,7 @@ snippet beg
rescue ${1:Exception} => ${2:e} rescue ${1:Exception} => ${2:e}
end end
snippet req snippet req require
require "${1}"${2} require "${1}"${2}
snippet # snippet #
# => # =>
@ -575,7 +575,7 @@ snippet asre
assert_response :${1:success}, @response.body${2} assert_response :${1:success}, @response.body${2}
snippet asrj snippet asrj
assert_rjs :${1:replace}, "${2:dom id}" assert_rjs :${1:replace}, "${2:dom id}"
snippet ass snippet ass assert_select(..)
assert_select '${1:path}', :${2:text} => '${3:inner_html' ${4:do} assert_select '${1:path}', :${2:text} => '${3:inner_html' ${4:do}
snippet bf snippet bf
before_filter :${1:method} before_filter :${1:method}

View File

@ -8,7 +8,7 @@ snippet apply-templates sort-by
<xsl:sort select="${2:node}" order="${3:ascending}" data-type="${4:text}">${5} <xsl:sort select="${2:node}" order="${3:ascending}" data-type="${4:text}">${5}
</xsl:apply-templates>${6} </xsl:apply-templates>${6}
snippet apply-templates snippet apply-templates plain
<xsl:apply-templates select="${1:*}" />${2} <xsl:apply-templates select="${1:*}" />${2}
snippet attribute blank snippet attribute blank