I'm new to textmate, so...<div><br></div><div>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.  </div><div><br></div><div>Paste this into file (e.g. <a href="http://test.pl">test.pl</a>) 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.</div>
<div><br></div><div><div><font class="Apple-style-span" face="arial, sans-serif"><div style="color: rgb(0, 0, 204); ">sub fn() {</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">        </span># some perl code</div>
<div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">    </span>my $f = shift;</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">     </span>if( $f =~ /\\/ ) { </div>
<div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">            </span>my $var = "Hello";</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">       </span>}</div>
<div style="color: rgb(0, 0, 204); ">}</div><div style="color: rgb(0, 0, 204); "><br></div><div style="color: rgb(0, 0, 204); ">sub fn2() {</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">   </span># some perl code</div>
<div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">    </span>my $f = shift;</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">     </span>if( $f =~ /\\/ ) { </div>
<div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">            </span>my $var = "Hello";</div><div style="color: rgb(0, 0, 204); "><span class="Apple-tab-span" style="white-space:pre">       </span>}</div>
<div style="color: rgb(0, 0, 204); ">}</div><div style="color: rgb(0, 0, 204); "><br></div><div style="color: rgb(0, 0, 204); "><br></div><div>Thoughts?  I am using textmate Version 1.5.10 (1631)</div><div><br></div><div>
thanks -thomas</div><div style="color: rgb(0, 0, 204); "><br></div></font></div></div>