Marcus came by irc with a perl grammar bug, it's because of the variables in regular expressions: http://pastie.textmate.org/39247 I see the issue, but not sure the best way to fix it since I don't know quite how perl determines which is which.