[TxMt] Minor PHP Scoping/Formatting Blip
Richard Dyce
dd at dyce.com
Tue Jul 24 15:41:39 UTC 2007
Not a biggie, but thought someone might want to know... for next time
they're tinkering (Ciarán? ;-) ) with the PHP bundle.
Thought I'd try fiddling with my copy of SimpleTest to put txmt style
links on the test reports, just to make things a bit easier...
Thought I'd just grab what i needed from the $message variable which
shows up something like this:
[/Library/WebServer/Documents/pcs/tests/panel_test.php line 56]
Tried putting
$linkRef = preg_replace( array('/^.*\[/','/\].*$/','/ line /'),
array('txmt://open?url=file://','', '&line='), $message);
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 \[.
If I didn't happen to be searching for the end square bracket as
well, then the rest of the code would be highlighted as a pattern...
Hope that's as clear as mud.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070724/ddd9557c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2405 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070724/ddd9557c/attachment.p7s>
More information about the textmate
mailing list