[SVN] bundle regexp question

Eric Hsu erichsu at math.sfsu.edu
Thu Jun 9 21:09:18 UTC 2005


I was trying to fix the Perl bundle to support the qq function which  
allows new quotes like

qq!I am an
"annoying" new line
quote!;

using

         {    name = "string.unquoted.qq";
             begin = "qq(.)";
             end = "\\1";
             swallow = "\\\\.";
         },

I got it to work almost perfectly. However, the 'qq' gets  
highlighted, which looks slightly silly to me. I tried to add

     patterns = ( { match = "\\1\\b.*\\b\\1"; } );

to the search, which resulted in sporadic crashing and console error  
messages

> 2005-06-09 14:01:24.488 TextMate[27466] Exception raised during  
> posting of notification.  Ignored.  exception: *** -[NSCFArray  
> objectAtIndex:]: index (0) beyond bounds (0)
> 2005-06-09 14:01:24.495 TextMate[27466] Exception raised during  
> posting of notification.  Ignored.  exception: *** -[NSCFArray  
> objectAtIndex:]: index (0) beyond bounds (0)
> TextMate regular expression error
> Anonymous rule
> Error: invalid backref number/name for pattern \1\b.*\b\1

Anyway, I'm taking suggestions about what to do about the qq and also  
making a note to Allan that this is another obscure way to crash TM.

best, Eric
---
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu at math.sfsu.edu
http://math.sfsu.edu/hsu




More information about the textmate-dev mailing list