]> git.eshelyaron.com Git - emacs.git/commit
Refactor Ftreesit_query_capture
authorYuan Fu <casouri@gmail.com>
Tue, 21 Mar 2023 23:03:08 +0000 (16:03 -0700)
committerYuan Fu <casouri@gmail.com>
Fri, 24 Mar 2023 19:29:33 +0000 (12:29 -0700)
commitc3a25bfb75c1cd41a1d2c613ec944a490cf8aff7
treed42358aeb1be9469c8f10749044fe36f4c86300a
parent4a2dccd6a68625914ae6fa4b0bbb002f5ea079db
Refactor Ftreesit_query_capture

Refactor some part of Ftreesit_query_capture out into separate
functions, to pave the way for other query-based functions.

* src/treesit.c (treesit_resolve_node): New function.
(treesit_initialize_query): New function.
(Ftreesit_query_capture): Refactor some part into new functions.
src/treesit.c