mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
6 lines
299 B
Plaintext
6 lines
299 B
Plaintext
# -*- 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 } |