PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/Ruby/gsub(;..;)-{-match-..-}-(gsu).sublime-snippet

https://bitbucket.org/pixl_dave/sublime-packages
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 70c0e1902a915383900b733e9f4c17dc MD5 | raw file
  1. <snippet>
  2. <content><![CDATA[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 }]]></content>
  3. <tabTrigger>gsu</tabTrigger>
  4. <scope>source.ruby</scope>
  5. <description>gsub(/../) { |match| .. }</description>
  6. </snippet>