mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Each Element ruby snippets updated to work with yasnippet.
This commit is contained in:
parent
88287640e9
commit
02408621e8
@ -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 }
|
Loading…
x
Reference in New Issue
Block a user