Skip to content

Commit

Permalink
pt1
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Nov 12, 2023
1 parent a022d9e commit 2ef1240
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tree_sitter/binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,12 @@ static bool satisfies_text_predicates(Query *query, TSQueryMatch match, Tree *tr
node2 = node_for_capture_index(state, capture2_value_id, match, tree);
if (node1 == NULL || node2 == NULL) {
is_satisfied = true;
if (node1 != NULL) {
Py_XDECREF(node1);
}
if (node2 != NULL) {
Py_XDECREF(node2);
}
} else {
node1_text = node_get_text(node1, NULL);
node2_text = node_get_text(node2, NULL);
Expand Down

0 comments on commit 2ef1240

Please sign in to comment.