[TxMt] python in TextMate question

Jeroen van der Ham jeroen at je-ju.net
Fri Aug 19 16:40:02 UTC 2005


On 19-08-2005 17:49, Kumar McMillan wrote:
> foldingStartMarker: (^\s*)(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:
> foldingEndMarker: ^(?!\s*$)(?!\1\s+.*$)

Note that  the \1 in the foldingEnd Marker refers to the first match of
the foldingEndMarker pattern, which contains itself...
You can't refer to the first pattern of the foldingStartMarker there.

Jeroen.

-- 
            <http://www.je-ju.net/~jeroen/blog/>



More information about the textmate mailing list