]> git.eshelyaron.com Git - emacs.git/commit
Fix FOR_EACH_TAIL in c-ts-mode (bug#62951)
authorYuan Fu <casouri@gmail.com>
Thu, 27 Apr 2023 03:09:42 +0000 (20:09 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 27 Apr 2023 19:50:16 +0000 (12:50 -0700)
commit31b58161bb5e2afd30ade92854241976ee71bae0
tree11e390281b030237340bc9b3d6a93a0e3de3411c
parent0cf6e0998badfa3d2d9e93791cd581f2e00fff0b
Fix FOR_EACH_TAIL in c-ts-mode (bug#62951)

* lisp/progmodes/c-ts-mode.el
(c-ts-mode--indent-styles): New indent rule.

(c-ts-mode--for-each-tail-regexp)
(c-ts-mode--for-each-tail-body-matcher)
(c-ts-mode--emacs-c-range-query)
(c-ts-mode--for-each-tail-ranges)
(c-ts-mode--reverse-ranges)
(c-ts-mode--emacs-set-ranges): New functions and variables.

(c-ts-mode): Create a emacs-c parser.  More setup for Emacs source
support.

* lisp/treesit.el (treesit-query-range): Ignore underscore-prefixed
capture names.
lisp/progmodes/c-ts-mode.el