]> git.eshelyaron.com Git - emacs.git/commit
Add 'and', 'named', and 'anonymous' predicate for tree-sitter
authorYuan Fu <casouri@gmail.com>
Mon, 13 Jan 2025 07:41:47 +0000 (23:41 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 13 Jan 2025 12:12:05 +0000 (13:12 +0100)
commit5bc9cd6a818b1a041977b0e0bf9a2c7489cd307d
tree0fbf6666fe59423e95a711928687eb29568764ac
parent9dc61e3408e685dbeb90b40a13bb500c86a00372
Add 'and', 'named', and 'anonymous' predicate for tree-sitter

* doc/lispref/parsing.texi (User-defined Things): Mention the
new predicate.
* src/treesit.c (treesit_traverse_validate_predicate): Recognize
named, anonymous, and and predicates.
(treesit_traverse_match_predicate): Handle named, anonymous, and
and predicates.

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