]> git.eshelyaron.com Git - emacs.git/commit
Enable treesit-query-capture to return grouped captures
authorYuan Fu <casouri@gmail.com>
Thu, 27 Feb 2025 11:07:34 +0000 (03:07 -0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 28 Feb 2025 11:20:03 +0000 (12:20 +0100)
commit0ba5125be31aac09857d9a0c3c9695ba68f1edc0
tree1af5ed5914ec60c474cf2d0ec9095eb440b00f41
parentd9857bf14c109dc4c9054edfb59ce2e474b0c200
Enable treesit-query-capture to return grouped captures

This is needed for creating embedded parsers for embedded code
blocks of which language cannot be known ahead of time.  E.g.,
markdown and org mode's code block.

* src/treesit.c (Ftreesit_query_capture): Add parameter GROUPED.

(cherry picked from commit 625b2b02a3c9bad6d7abf57ea7f95ece29855906)
doc/lispref/parsing.texi
src/treesit.c