Updates to imported ruby-mode block snippets.

This commit is contained in:
Rob Christie
2009-10-22 14:06:52 +00:00
parent fb1a98dcbf
commit ca2b25e84a
3 changed files with 6 additions and 4 deletions

View File

@@ -4,6 +4,6 @@
# name: Insert do |variable| … end
## condition: "source.ruby"
# --
do${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/}${1:variable}${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}
$0
do ${1:$(if (string= yas/text "") "" "|")}${1:variable}${1:$(if (string= yas/text "") "" "|")}
$0
end