Closed geert56 closed 2 years ago
In file ltreesitter/csrc/query.c on line 295 name is incorrectly calculated. The correct line should read: const char *name = ts_query_capture_name_for_id(q->query, m.captures[capture_index].index, &len);
const char *name = ts_query_capture_name_for_id(q->query, m.captures[capture_index].index, &len);
Thanks for reporting! I've fixed the line and added a test for this.
In file ltreesitter/csrc/query.c on line 295 name is incorrectly calculated. The correct line should read:
const char *name = ts_query_capture_name_for_id(q->query, m.captures[capture_index].index, &len);