[TxMt] Bug in perl syntax?
Andy Armstrong
andy at hexten.net
Thu Feb 15 12:33:13 UTC 2007
On 15 Feb 2007, at 04:36, Allan Odgaard 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.
You can also use $ as a regex delimiter
qr$ All?an $
in that case $ isn't part of the RE.
--
Andy Armstrong, hexten.net
More information about the textmate
mailing list