]> 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 06:37:36 +0000 (22:37 -0800)
commitae91d5cd53111216788473e81b378c556ba496a2
treeb633e51b635aceae07e3f1ca7ce9a28bae203ac6
parent40764ac7f852ff72b62801ca07e2d88c29f0aa61
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