GNU bug report logs -
#58940
[PATCH] feature/tree-sitter: Add more font lock faces
Previous Next
Reported by: Randy Taylor <dev <at> rjt.dev>
Date: Tue, 1 Nov 2022 01:22:01 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 58940 <at> debbugs.gnu.org (full text, mbox):
> On Oct 31, 2022, at 6:21 PM, Randy Taylor <dev <at> rjt.dev> wrote:
>
> The attached patch adds the following faces:
> • font-lock-escape-face
> • font-lock-number-face
> • font-lock-operator-face
> • font-lock-property-face
> • font-lock-punctuation-face
>
> font-lock-property-face inherits font-lock-variable-name-face which matches the behaviour of cc-mode and python-mode.
>
> font-lock-escape-face inherits nothing. In python-mode, it inherits font-lock-constant-face, but not in cc-mode. Do we want it to inherit anything?
>
> Hopefully I put everything in the right place.
>
> <0001-Add-more-font-lock-faces.patch>
Looks good! I would add a bit more explanation/example for font-lock-property-face and font-lock-punctuation-face. Eg, it’s not immediately clear to me what does preperty represent (property of an object as in obj.prop?). And it would be nice to say that punctuation-face are for commas and parenthesises.
Yuan
This bug report was last modified 2 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.