PageRenderTime 122ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

/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
1# -*- mode: snippet -*-
2# key: ste
3# contributor: Translated from TextMate Snippet
4# name: step(2) { |e| .. }
5# --
6step(${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 }