[TxMt] perl syntax color oddity

Allan Odgaard throw-away-2 at macromates.com
Sat Oct 13 14:52:33 UTC 2007


On 13/10/2007, at 02:46, Dallas Kashuba wrote:

> [...]
> The \S there is matching any non-whitespace character so it doesn't  
> like the space character being used between the //.  I changed that  
> match line to this and it seems to have fixed it for me...
> [...]
> Is there any reason that's not a wise change to make?

The reason for the non-whitespace character required directly after /  
is to avoid false positives like:

    $var = $foo / 4 + $bar / 2;

I think your change will now flag ‘/ 4 + $bar /’ as a regexp.




More information about the textmate mailing list