mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 08:24:18 +00:00
Each Element ruby snippets updated to work with yasnippet.
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
# name: inject(init) { |mem, var| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }
|
||||
inject${1:$(if (string= yas/text "") "" "(")}${1:init}${1:$(if (string= yas/text "") "" ")")} { |${2:mem}, ${3:var}| $0 }
|
||||
Reference in New Issue
Block a user