emacs-devel
[Top][All Lists]
Advanced

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

More font-lock faces for tree-sitter


From: Randy Taylor
Subject: More font-lock faces for tree-sitter
Date: Fri, 28 Oct 2022 02:26:45 +0000

Hi.

Since tree-sitter will allow for more fine-grained syntax highlighting, I think it would be useful to define more faces to give the user more customization for syntax highlighting.
I already make use of these for my own queries.

Here are some that I had in mind:
- font-lock-escape-face
  - For escape characters in strings.
- font-lock-property-face
  - Usually an object property, like a member in a class or struct.
- font-lock-punctuation-face
  - In addition, we could get even more specific: font-lock-punctuation-{delimiter, bracket, special}
- font-lock-number-face
- font-lock-operator-face

We can certainly get even more fine-grained, but I think this is a good start and wanted to kick off the discussion. Feel free to offer more suggestions.

Happy to send a patch for the above if interested.

reply via email to

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