[TxMt] Bug in perl syntax?

Allan Odgaard throw-away-1 at macromates.com
Thu Feb 15 04:36:55 UTC 2007


On 14. Feb 2007, at 22:03, Grant Hollingworth wrote:

> * Marcus Ramberg <marcus.ramberg at gmail.com> [2007-02-13 14:25]:
>> http://pastie.textmate.org/40039 is parsed wrong by my textmate
>> installation. I'm running the latest version from svn. Seems to  
>> have a
>> problem with $<delim> under qr. works fine with m//.
>
> Oh, nasty.  The $ is matching as the start of a variable name.  I'm  
> not sure how to fix that.  In the mean time, you can use a  
> delimiter that doesn't match as a variable.  qr{} works.

I assume variables are allowed in regexps?

So likely Perl distinguish between end-of-line-$ and start-of- 
variable-$ by what follows the character? We could make the regexp  
variable rule do the same in TM.




More information about the textmate mailing list