]> git.eshelyaron.com Git - emacs.git/commit
Tweak c-ts-mode fontification
authorYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 06:37:36 +0000 (22:37 -0800)
committerYuan Fu <casouri@gmail.com>
Tue, 22 Nov 2022 09:06:51 +0000 (01:06 -0800)
commitcb60342c0184fa8ef9462c9926e93dceff959f49
tree4820c82dc3dcbefe36095eaf727c2b9592a79abf
parentc7202e7f4aedee607f26727de52b85819bf64dab
Tweak c-ts-mode fontification

New features: function and variable, which consistently fontify all
occurrences of functions and variables, respectively.

Remove expression feature, as its purpose is fulfilled by function,
variable, and property combined.

Fix declaration feature, remove unnecessary rule from label
feature.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): See
above description.
(c-ts-mode--fontify-variable): New function.
(c-ts-mode--base-mode): Add & remove features.
lisp/progmodes/c-ts-mode.el