bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22867: cperl mode highlights %d, but misses %.6f


From: Andreas Schwab
Subject: bug#22867: cperl mode highlights %d, but misses %.6f
Date: Fri, 07 Aug 2020 13:13:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Aug 07 2020, Lars Ingebrigtsen wrote:

> That font locking is actually a bug:
>
>            ("\\(\\([@%]\\|\\$#\\)[a-zA-Z_:][a-zA-Z0-9_:]*\\)" 1
>             (if (eq (char-after (match-beginning 2)) ?%)
>                 'cperl-hash-face
>               'cperl-array-face)
>             t)                        ; arrays and hashes
>
> It's interpreting this as a hash called %d...  but we're inside a
> string, so it's not a hash.
>
> At this point, the string has already been fontised...  So how do we
> avoid doing this stuff if we're in a string?  Cc'd Stefan for
> expertise.  :-)

Replace t by nil or 'keep.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]