yasnippet/extras/imported/ruby-mode/Counting/times { |n| .. } (tim).yasnippet
2009-08-29 17:59:02 +00:00

6 lines
290 B
Plaintext

# -*- 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 }