Hey guys,
I’ve got a little problem with a important Snippet I copied form the Ruby on Rails Textmate bundle.
I think it uses regular expressions which aren’t supportet by Python. Is there a way to fix this?
<snippet>
<content><![CDATA[
do${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/}${1:variable}${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}
$0
end
]]></content>
<tabTrigger>do</tabTrigger>
<scope>source.ruby</scope>
</snippet>
Demonstration of how it does not work and how it should work: http://www.youtube.com/watch?v=E5tFx8ReMGM)
Hope someone has a neat idea for that
Regards,
Chaos