mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 22:42:25 +00:00
Updates to imported ruby-mode block snippets.
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
# name: lambda { |args| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
lambda { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:args}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
lambda { ${1:$(if (string= yas/text "") "" "|")}${1:args}${1:$(if (string= yas/text "") "" "|")}$0 }
|
||||
Reference in New Issue
Block a user