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

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

bug#67684: 30.0.50; Font lock rule conflict in js-ts-mode at level 4


From: Dmitry Gutov
Subject: bug#67684: 30.0.50; Font lock rule conflict in js-ts-mode at level 4
Date: Fri, 8 Dec 2023 03:33:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Hi!

On 07/12/2023 12:07, Loïc Lemaître wrote:
I have noticed a font coloration issue in js-ts-mode when setting the treesit font lock level to 4: JSX attributes color is not the same than at level 3. There should have a conflict between rules for "property_identifier" treesit type. The feature that triggers the conflict is "property" (of the level 4).

You can reproduce the issue by following these steps:
- M-: (setq treesit-font-lock-level 4)
- M-x js-ts-mode on a JSX buffer

Note that the bug already exists in Emacs 29.1.

The attached patch seems to fix that.

But it removes a function added by Yuan in e78e69b33189, while reshuffling the highlights to reorder priorities.

Yuan, do you remember why you did it that way back then? Perhaps I'm missing some other conflict.

Attachment: js-ts-font-lock-property.diff
Description: Text Data


reply via email to

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