]> git.eshelyaron.com Git - emacs.git/commit
Add newly supported keywords to c-ts-mode (bug#75226)
authorYuan Fu <casouri@gmail.com>
Sun, 12 Jan 2025 08:35:20 +0000 (00:35 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 13 Jan 2025 12:12:04 +0000 (13:12 +0100)
commitad04e844b42e41bd540a99dfa6a813d664aa30ab
tree18f3530a183681d7fc872111ed8b50593b61ab84
parent3b3de5da3a854b25952951f222d284e796fad113
Add newly supported keywords to c-ts-mode (bug#75226)

For the new keywords, test if the grammar supports them before
useing it.

* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--optional-c-keywords): New variable.
(c-ts-mode--ms-keywords): New variable.
(c-ts-mode--compute-optional-keywords): New function.
(c-ts-mode--keywords): Add new optional keywords.
(c-ts-mode--c++-operators): New variable.
(c-ts-mode--c++-operator-keywords): New variable.
(c-ts-mode--font-lock-settings): Use c-ts-mode--c++-operators.

(cherry picked from commit 7d3bc1ff2f44215ad24fdd8b243e7cee8ff66fa0)
lisp/progmodes/c-ts-mode.el