On 4/25/07, <b class="gmail_sendername">Hendrik Fuß</b> <<a href="mailto:hendrik.fuss@gmail.com">hendrik.fuss@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Okay, I am unable to test this at the moment, but: In the expression<br>{$foo} doesn't TextMate take the } as the closing brace for $? That<br>would mean that there is still one unmatched opening brace {.</blockquote>
<div><br>I see what you mean. Yes, that is a problem: see below for a fix.<br>The reason you confused me is that this doesn't affect "Select<br>Enclosing Brackets", which I don't think uses the scope information
<br>at all. Indeed, "Select Enclosing Brackets" works perfectly as expected<br>in all the cases I've tested, including the one you just posted.<br><br>You *can* see the problem by typing<br><br>  {$foo}<br><br>
positioning the cursor after it, and pressing control-shift-P. This shows that<br>the brace group is still in effect. The fix is to use a lookahead:<br><br>        …<br>
        {    name = 'string.other.math.tex';<br>            begin = '\$';<br>            end = '(?=\})|\$';<br>        …<br><br>Thanks for pointing this out.<br><br>Robin</div></div>