# -*- mode: snippet -*- # key: { # contributor: Translated from TextMate Snippet # name: Insert { |variable| … } ## condition: "source.ruby - string - comment" # -- { ${1/(^(?\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${1:variable}${1/(^(?\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}${2:`yas/selected-text`}