add row to node equality

This commit is contained in:
joshvera 2015-12-02 16:45:20 -05:00
parent 7ad82cf684
commit 4953182707

View file

@ -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) {