# -*- mode: snippet -*- # key: upt # contributor: Translated from TextMate Snippet # name: upto(1.0/0.0) { |n| .. } # -- upto(${1:1.0/0.0}) { ${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 }