]> git.eshelyaron.com Git - emacs.git/commit
Equal now recognizes tree-sitter nodes (bug#60659)
authorYuan Fu <casouri@gmail.com>
Fri, 13 Jan 2023 01:07:21 +0000 (17:07 -0800)
committerYuan Fu <casouri@gmail.com>
Fri, 13 Jan 2023 01:11:38 +0000 (17:11 -0800)
commit956889d8ff1c79db45ca9b1711f406961e71c272
tree4d44cc819db4ff7433ac2a02bf61f693182de00f
parent8f446c2d39736d752829e37100eede3f484b827e
Equal now recognizes tree-sitter nodes (bug#60659)

Now equal uses ts_node_eq to check equality between nodes.

* doc/lispref/parsing.texi:
(Accessing Node Information): Update manual.
* src/fns.c (internal_equal): Handle tree-sitter nodes.
* src/treesit.c (treesit_node_eq): New function.
(Ftreesit_node_eq): Factor out.  Update docstring.
* src/treesit.h (treesit_node_eq): Declare new function.
doc/lispref/parsing.texi
src/fns.c
src/treesit.c
src/treesit.h