[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72228: 31.0.50; Wrong number fontification in cmake-ts-mode
From: |
Randy Taylor |
Subject: |
bug#72228: 31.0.50; Wrong number fontification in cmake-ts-mode |
Date: |
Tue, 23 Jul 2024 02:32:37 +0000 |
On Sunday, July 21st, 2024 at 07:13, Ergus via "Bug reports for GNU Emacs, the
Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> wrote:
>
> When using cmake-ts-mode the numbers have 3 different faces:
>
> 1, 2, 100: font-lock-number-face (OK)
>
> 0 : font-lock-constant-face. The cmake-ts-mode--constants takes
> precedence over regex in font-lock-number-face. It is not clear that
> this one can be fixed.
1 also gets font-lock-constant-face.
I think we should just remove "1" and "0" from cmake-ts-mode--constants.
>
> -1, -2 : Not fontified. This seems simpler to fix, the regex in
> font-lock-number-face is missing a `-?' before the first [[:digit:]])
>
Indeed. Would you like to submit a patch for that and the above?