From 12bf6b429d73d71ef307cefac0fdeb82e38919b0 Mon Sep 17 00:00:00 2001 From: crazymaster Date: Mon, 20 May 2013 20:32:10 +0900 Subject: [PATCH 1/2] Fixed liquid snippets. --- autoload/neosnippet/snippets/liquid.snip | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/autoload/neosnippet/snippets/liquid.snip b/autoload/neosnippet/snippets/liquid.snip index d22c14f..87de33a 100644 --- a/autoload/neosnippet/snippets/liquid.snip +++ b/autoload/neosnippet/snippets/liquid.snip @@ -1,11 +1,14 @@ snippet comment +options word {% comment %}${1:#:comment}{% endcomment %} snippet raw +options word {% raw %}${1:#:TARGET}{% endraw %} snippet if abbr if endif +options word {% if ${1:#:condition} %} ${0:TARGET} {% endif %} @@ -24,6 +27,7 @@ abbr if else endif snippet unless abbr unless endunless +options word {% unless ${1:#:TARGET} %} ${0:TARGET} {% endunless %} @@ -44,32 +48,39 @@ snippet when ${0} snippet cycle +options word {% cycle ${1:#:TARGET} %} snippet for abbr for in endfor +options word {% for ${1:#:var} in ${2:#:list} %} ${0:TARGET} {% endfor%} snippet tablerow abbr tablerow in endtablerow +options word {% tablerow ${1:#:var} in ${2:#:list} %} ${0:TARGET} {% endtablerow %} snippet assign +options word {% assign ${1:#:var} = ${2:#:value} %} snippet capture +options word {% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %} snippet include +options word {% include ${1:#:TARGET} %} snippet block abbr {{ }} alias {{ +options word {{ ${1:#:TARGET} }} @@ -77,6 +88,7 @@ alias {{ snippet highlight alias hl +options word {% highlight ${1:#:TARGET} %} ${2:code} {% endhighlight %} @@ -84,10 +96,12 @@ alias hl snippet highlight_line abbr Line number alias hl_l +options word {% highlight ${1:#:TARGET} linenos %} ${2:code} {% endhighlight %} snippet post_url +options word {% post_url ${1:#:TARGET} %} From f9e05a1ec6a5676e5fd2251faa569d30ce34d8ee Mon Sep 17 00:00:00 2001 From: crazymaster Date: Mon, 20 May 2013 20:57:26 +0900 Subject: [PATCH 2/2] Fixed markdown snippets. --- autoload/neosnippet/snippets/markdown.snip | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/autoload/neosnippet/snippets/markdown.snip b/autoload/neosnippet/snippets/markdown.snip index 817de39..5b80c9e 100644 --- a/autoload/neosnippet/snippets/markdown.snip +++ b/autoload/neosnippet/snippets/markdown.snip @@ -1,52 +1,67 @@ snippet link abbr [link][] +options word [${1:#:link_id}][]${2} snippet linkid abbr [link][id] +options word [${1:#:link}][${2:id}]${3} snippet linkurl abbr [link](url) +options word [${1:#:link}](http://${2:#:url})${3} snippet linkemail abbr [link](email) +options word [${1:#:link}](mailto:${2:#:email})${3} snippet linkurltitle abbr [link](url "title") +options word [${1:#:link}](${2:#:url} "${3:#:title}")${4} snippet idurl abbr [id]: url "title" +options word [${1:#:id}]: http://${2:#:url} "${3:#:title}" snippet idemail abbr [id]: email "title" +options word [${1:#:id}]: mailto:${2:#:url} "${3:#:title}" snippet altid abbr ![alt][id] +options word ![${1:#:alt}][${2:#:id}]${3} snippet alturl abbr ![alt](url) +options word ![${1:#:alt}](${2:#:url})${3} snippet alturltitle abbr ![alt](url "title") +options word ![${1:#:alt}](${2:#:url} "${3:#:title}")${4} snippet emphasis1 abbr *emphasis* +options word *${1}*${2} snippet emphasis2 abbr _emphasis_ +options word _${1}_${2} snippet strong1 abbr **strong** +options word **${1}**${2} snippet strong2 abbr __strong__ +options word __${1}__${2} snippet code abbr `code` +options word \`${1}\`${2}