]> git.eshelyaron.com Git - emacs.git/commit
Tweaks on c-ts-mode fontification rules
authorYuan Fu <casouri@gmail.com>
Wed, 16 Nov 2022 22:33:48 +0000 (14:33 -0800)
committerYuan Fu <casouri@gmail.com>
Wed, 16 Nov 2022 23:46:16 +0000 (15:46 -0800)
commit7bc615fd23c1304f8682f2443db235fbc37bfde9
tree047eb2024245b318fbabb22d0305198bf67909d6
parent7f57d80846b5f674c49a717d6fc086c14f506415
Tweaks on c-ts-mode fontification rules

Changes:
1. Remove some :override flags
2. Fontify "!" in font-lock-negation-char-face
3. Use some new faces like font-lock-escape-face and
   font-lock-property-face
4. Move all type fontification into 'type' feature.  Previously some
   are in 'definition' feature.
5. Simplify definition feature, and fontify identifiers in definitions
   recursively.
6. Change 'statement' feature to 'label'
7. New feature 'assignment'
8. Remove some rules from 'expression' feature

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): See
above.
(c-ts-mode--fontify-declarator): New function.
(c-ts-mode): Update feature-list.
lisp/progmodes/c-ts-mode.el