<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On 24 Jul 2007, at 16:41, Richard Dyce wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><BR class="Apple-interchange-newline"><DIV>Tried putting </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> $linkRef = preg_replace( array('/^.*\[/','/\].*$/','/ line /'), array('<A href="txmt://open?url=file://',''"><SPAN class="Apple-style-span" style="color: rgb(0, 0, 238); -khtml-text-decorations-in-effect: underline; ">txmt://open?url=file://',''</SPAN></A>, '&line='), $message);</DIV><DIV> </DIV><DIV>which works as far as the links go, but throws a distinct wobbly in terms of scope within TM after that delimited open square bracket \[.<SPAN class="Apple-converted-space"> </SPAN></DIV></SPAN></BLOCKQUOTE></DIV><BR><DIV>Hi Richard,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for the report.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Are you using a Subversion checkout of the PHP bundle? I've just copied and pasted that line into a PHP file and it was highlighted as I'd expect [1]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[1]: <A href="http://pastie.textmate.org/81761">http://pastie.textmate.org/81761</A></DIV></BODY></HTML>