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

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

bug#64019: 29.0.91; Fix some tree-sitter :match regexps


From: Dmitry Gutov
Subject: bug#64019: 29.0.91; Fix some tree-sitter :match regexps
Date: Tue, 13 Jun 2023 20:06:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 13/06/2023 10:47, Mattias Engdegård wrote:
12 juni 2023 kl. 23.39 skrev Dmitry Gutov<dmitry@gutov.dev>:

On 12/06/2023 19:07, Mattias Engdegård wrote:
I particularly like the bug in several of the modes that will colour ABCd as a 
constant, but not ABCe or ABC2, despite the obvious intention that only the 
last should have that face.
Could you point to some relevant part of the patch?
The ones replacing \d with 0-9:

-      (:match "^[A-Z_][A-Z_\\d]*$" @font-lock-constant-face))
+      (:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face))


Makes sense, thanks.





reply via email to

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