Merge pull request #149 from crazymaster/master

Fixed snippets.
This commit is contained in:
Shougo 2013-05-20 05:27:49 -07:00
commit 58698b6959
2 changed files with 29 additions and 0 deletions

View File

@ -1,11 +1,14 @@
snippet comment snippet comment
options word
{% comment %}${1:#:comment}{% endcomment %} {% comment %}${1:#:comment}{% endcomment %}
snippet raw snippet raw
options word
{% raw %}${1:#:TARGET}{% endraw %} {% raw %}${1:#:TARGET}{% endraw %}
snippet if snippet if
abbr if endif abbr if endif
options word
{% if ${1:#:condition} %} {% if ${1:#:condition} %}
${0:TARGET} ${0:TARGET}
{% endif %} {% endif %}
@ -24,6 +27,7 @@ abbr if else endif
snippet unless snippet unless
abbr unless endunless abbr unless endunless
options word
{% unless ${1:#:TARGET} %} {% unless ${1:#:TARGET} %}
${0:TARGET} ${0:TARGET}
{% endunless %} {% endunless %}
@ -44,32 +48,39 @@ snippet when
${0} ${0}
snippet cycle snippet cycle
options word
{% cycle ${1:#:TARGET} %} {% cycle ${1:#:TARGET} %}
snippet for snippet for
abbr for in endfor abbr for in endfor
options word
{% for ${1:#:var} in ${2:#:list} %} {% for ${1:#:var} in ${2:#:list} %}
${0:TARGET} ${0:TARGET}
{% endfor%} {% endfor%}
snippet tablerow snippet tablerow
abbr tablerow in endtablerow abbr tablerow in endtablerow
options word
{% tablerow ${1:#:var} in ${2:#:list} %} {% tablerow ${1:#:var} in ${2:#:list} %}
${0:TARGET} ${0:TARGET}
{% endtablerow %} {% endtablerow %}
snippet assign snippet assign
options word
{% assign ${1:#:var} = ${2:#:value} %} {% assign ${1:#:var} = ${2:#:value} %}
snippet capture snippet capture
options word
{% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %} {% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %}
snippet include snippet include
options word
{% include ${1:#:TARGET} %} {% include ${1:#:TARGET} %}
snippet block snippet block
abbr {{ }} abbr {{ }}
alias {{ alias {{
options word
{{ ${1:#:TARGET} }} {{ ${1:#:TARGET} }}
@ -77,6 +88,7 @@ alias {{
snippet highlight snippet highlight
alias hl alias hl
options word
{% highlight ${1:#:TARGET} %} {% highlight ${1:#:TARGET} %}
${2:code} ${2:code}
{% endhighlight %} {% endhighlight %}
@ -84,10 +96,12 @@ alias hl
snippet highlight_line snippet highlight_line
abbr Line number abbr Line number
alias hl_l alias hl_l
options word
{% highlight ${1:#:TARGET} linenos %} {% highlight ${1:#:TARGET} linenos %}
${2:code} ${2:code}
{% endhighlight %} {% endhighlight %}
snippet post_url snippet post_url
options word
{% post_url ${1:#:TARGET} %} {% post_url ${1:#:TARGET} %}

View File

@ -1,52 +1,67 @@
snippet link snippet link
abbr [link][] abbr [link][]
options word
[${1:#:link_id}][]${2} [${1:#:link_id}][]${2}
snippet linkid snippet linkid
abbr [link][id] abbr [link][id]
options word
[${1:#:link}][${2:id}]${3} [${1:#:link}][${2:id}]${3}
snippet linkurl snippet linkurl
abbr [link](url) abbr [link](url)
options word
[${1:#:link}](http://${2:#:url})${3} [${1:#:link}](http://${2:#:url})${3}
snippet linkemail snippet linkemail
abbr [link](email) abbr [link](email)
options word
[${1:#:link}](mailto:${2:#:email})${3} [${1:#:link}](mailto:${2:#:email})${3}
snippet linkurltitle snippet linkurltitle
abbr [link](url "title") abbr [link](url "title")
options word
[${1:#:link}](${2:#:url} "${3:#:title}")${4} [${1:#:link}](${2:#:url} "${3:#:title}")${4}
snippet idurl snippet idurl
abbr [id]: url "title" abbr [id]: url "title"
options word
[${1:#:id}]: http://${2:#:url} "${3:#:title}" [${1:#:id}]: http://${2:#:url} "${3:#:title}"
snippet idemail snippet idemail
abbr [id]: email "title" abbr [id]: email "title"
options word
[${1:#:id}]: mailto:${2:#:url} "${3:#:title}" [${1:#:id}]: mailto:${2:#:url} "${3:#:title}"
snippet altid snippet altid
abbr ![alt][id] abbr ![alt][id]
options word
![${1:#:alt}][${2:#:id}]${3} ![${1:#:alt}][${2:#:id}]${3}
snippet alturl snippet alturl
abbr ![alt](url) abbr ![alt](url)
options word
![${1:#:alt}](${2:#:url})${3} ![${1:#:alt}](${2:#:url})${3}
snippet alturltitle snippet alturltitle
abbr ![alt](url "title") abbr ![alt](url "title")
options word
![${1:#:alt}](${2:#:url} "${3:#:title}")${4} ![${1:#:alt}](${2:#:url} "${3:#:title}")${4}
snippet emphasis1 snippet emphasis1
abbr *emphasis* abbr *emphasis*
options word
*${1}*${2} *${1}*${2}
snippet emphasis2 snippet emphasis2
abbr _emphasis_ abbr _emphasis_
options word
_${1}_${2} _${1}_${2}
snippet strong1 snippet strong1
abbr **strong** abbr **strong**
options word
**${1}**${2} **${1}**${2}
snippet strong2 snippet strong2
abbr __strong__ abbr __strong__
options word
__${1}__${2} __${1}__${2}
snippet code snippet code
abbr `code` abbr `code`
options word
\`${1}\`${2} \`${1}\`${2}