mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 09:54:17 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: Array
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Array.new(10) { |i| .. }
|
||||
# --
|
||||
Array.new(${1:10}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
Reference in New Issue
Block a user