]> git.eshelyaron.com Git - emacs.git/commit
Fix FOR_EACH_TAIL fontification (bug#62951)
authorYuan Fu <casouri@gmail.com>
Sat, 29 Apr 2023 22:39:54 +0000 (15:39 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Apr 2023 22:51:09 +0000 (15:51 -0700)
commit21361d0563524f25805de4705ab6a0fe16ea3d44
tree60fbd482107a91f66f1500648c5a2f0283aa4876
parentd0df3404fdea7134194a684c7d30479181f3ec49
Fix FOR_EACH_TAIL fontification (bug#62951)

Fix the fontification inconsistency between different FOR_EACH_TAIL's.
See the comment for more explanation.  Also enable the emacs-devel
feature automatically when c-ts-mode-emacs-sources-support is on.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--for-each-tail-regexp): Move up.
(c-ts-mode--font-lock-settings): New font-lock rule for FOR_EACH_TAIL.
(c-ts-mode--fontify-for-each-tail): New function.
(c-ts-mode): Automatically enable emacs-devel feature.
lisp/progmodes/c-ts-mode.el