/ruby-mode/Counting/step(2) { |e| .. } (ste).yasnippet
http://github.com/ridgetang/snippets · Unknown · 6 lines · 6 code · 0 blank · 0 comment · 0 complexity · e2c76451fa1c635426244fbca1d208da MD5 · raw file
- # -*- mode: snippet -*-
- # key: ste
- # contributor: Translated from TextMate Snippet
- # name: step(2) { |e| .. }
- # --
- step(${1:2}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }