mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-05 15:02:26 +00:00
Updates to imported ruby-mode block snippets.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user