Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1e7675a171
Fetching contributors…

Cannot retrieve contributors at this time

4 lines (4 sloc) 0.268 kb
# This was cloned from a TextMate bundle for yasnippet.
# key: gsu
# --
gsub(/${1:pattern}/) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
Jump to Line
Something went wrong with that request. Please try again.