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