Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
4 lines (4 sloc) 253 Bytes
# This was cloned from a TextMate bundle for yasnippet.
# key: lam
# --
lambda { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:args}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }