[TxMt] (no subject)

Kevin Ballard kevin at sb.org
Tue Jan 2 22:04:03 UTC 2007


Regexes are matched on a per-line basis. IIRC, each line includes the  
trailing newline, but it doesn't include the preceeding one.

Maybe you should try '^(?=# +)', or possibly using \A instead of ^ (I  
don't know what the \A vs ^ semantics are in the grammar matching).

On Dec 22, 2006, at 11:03 AM, Dr. Drang wrote:

> But I can't get a foldingStopMarker that works. What I'd like to  
> use is a blank line followed by a positive lookahead to a line that  
> starts with a hash and a space, but
>
>     foldingStopMarker = '^$\n(?=^# +)';
>
> doesn't work, even though that regex works in the Find dialog box.
>
> Are the start and stop markers restricted to single line patterns?  
> The manual suggests that, but it isn't explicit. Does anyone have  
> any ideas?

-- 
Kevin Ballard
http://kevin.sb.org
kevin at sb.org
http://www.tildesoft.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070102/c59eb2ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070102/c59eb2ab/attachment.p7s>


More information about the textmate mailing list