[TxMt] bug in syntax highlighting?

Thomas Blom blomcode at gmail.com
Tue Nov 8 19:38:25 UTC 2011


I'm new to textmate, so...

I was trying to figure out why the syntax highlighting in perl sucked so
much, when I realized it was getting messed up by some regex code.

Paste this into file (e.g. test.pl) and view in textmate.  Does the 2nd
function hilight correctly?  It is the /\\/ regex I think - comment the
first one out and watch the hilighting change.

sub fn() {
# some perl code
my $f = shift;
if( $f =~ /\\/ ) {
my $var = "Hello";
}
}

sub fn2() {
# some perl code
my $f = shift;
if( $f =~ /\\/ ) {
my $var = "Hello";
}
}


Thoughts?  I am using textmate Version 1.5.10 (1631)

thanks -thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20111108/5269a16c/attachment.html>


More information about the textmate mailing list