[TxMt] Re: Balancing parentheses near strings
Jacob Rus
jrus at hcs.harvard.edu
Wed Aug 9 00:21:40 UTC 2006
cormullion at mac.com wrote:
> I can't figure this out...
>
> Here's some text:
>
> (this is a parenthesis in quotes "(")
>
> If I put the caret before or after the final quotation and choose
> Select>Enclosing Brackets, TextMate selects the second opening
> parenthesis and the closing parenthesis. Also, no text is selected with
> the caret anywhere else.
>
> How can I teach TextMate that parentheses between quotation marks
> shouldn't be considered for a match? I want something like "Ignore
> parentheses that are in strings" but i can't see how to do that...
As far as I know, the select enclosing brackets command doesn't know
anything about scopes. So you can't really do what you want I don't think.
Incidentally, as a lisper, you should take a look at the extend current
parens command in the Experimental bundle. It does some neat stuff.
-Jacob
More information about the textmate
mailing list