diff options
Diffstat (limited to 'src/treesit.c')
| -rw-r--r-- | src/treesit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c index d2db91604ab..33a7e3c8528 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -2167,9 +2167,11 @@ bool treesit_node_eq (Lisp_Object node1, Lisp_Object node2) | |||
| 2167 | DEFUN ("treesit-node-eq", | 2167 | DEFUN ("treesit-node-eq", |
| 2168 | Ftreesit_node_eq, | 2168 | Ftreesit_node_eq, |
| 2169 | Streesit_node_eq, 2, 2, 0, | 2169 | Streesit_node_eq, 2, 2, 0, |
| 2170 | doc: /* Return non-nil if NODE1 and NODE2 are the same node. | 2170 | doc: /* Return non-nil if NODE1 and NODE2 refer to the same node. |
| 2171 | If any one of NODE1 and NODE2 is nil, return nil. | 2171 | If any one of NODE1 and NODE2 is nil, return nil. |
| 2172 | This function uses the same equivalence metric as `equal'. */) | 2172 | This function uses the same equivalence metric as `equal', and returns |
| 2173 | non-nil if NODE1 and NODE2 refer to the same node in a syntax tree | ||
| 2174 | produced by tree-sitter. */) | ||
| 2173 | (Lisp_Object node1, Lisp_Object node2) | 2175 | (Lisp_Object node1, Lisp_Object node2) |
| 2174 | { | 2176 | { |
| 2175 | if (NILP (node1) || NILP (node2)) | 2177 | if (NILP (node1) || NILP (node2)) |