From 49531827076718f49c7c2cade976536578ad1aa9 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 2 Dec 2015 16:45:20 -0500 Subject: [PATCH] add row to node equality --- src/runtime/node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/node.c b/src/runtime/node.c index ff9dc2ee..cbc720ce 100644 --- a/src/runtime/node.c +++ b/src/runtime/node.c @@ -196,7 +196,8 @@ const char *ts_node_string(TSNode self, const TSDocument *document) { bool ts_node_eq(TSNode self, TSNode other) { return ts_tree_eq(ts_node__tree(self), ts_node__tree(other)) && - ts_length_eq(ts_node__offset(self), ts_node__offset(other)); + ts_length_eq(ts_node__offset(self), ts_node__offset(other)) && + self.row == other.row; } bool ts_node_is_named(TSNode self) {