/ruby-mode/Counting/times { |n| .. } (tim).yasnippet
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 561bd2ed0be789d2b539e44a339f2a2d MD5 | raw file
- # -*- mode: snippet -*-
- # key: tim
- # contributor: Translated from TextMate Snippet
- # name: times { |n| .. }
- # --
- times { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:n}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }