]> git.eshelyaron.com Git - emacs.git/commit
Use treesit-query-first-valid in c-ts-mode
authorYuan Fu <casouri@gmail.com>
Wed, 15 Jan 2025 07:52:37 +0000 (23:52 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 Jan 2025 22:02:02 +0000 (23:02 +0100)
commit041b62e5b781235a6c06ba29cccdb283fd05fdaf
treef165fc4b9453980e24007a2da165847f64088882
parentd742484e4d7351c57479e9437ffbacd05b1934a1
Use treesit-query-first-valid in c-ts-mode

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
Use treesit-query-first-valid.  Use :default-language keyword.
(c-ts-mode--test-virtual-named-p): Remove function.

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