feat(lib): ts_query_cursor_set_max_start_depth - use 0 to reset

This commit is contained in:
Andrew Hlynskyi 2023-04-17 10:54:01 +03:00
parent 1e81a1b67f
commit d4d5e29c91
5 changed files with 132 additions and 43 deletions

View file

@ -897,6 +897,8 @@ bool ts_query_cursor_next_capture(
*
* This prevents cursors from exploring children nodes at a certain depth.
* Note if a pattern includes many children, then they will still be checked.
*
* Set to `0` to remove the maximum start depth.
*/
void ts_query_cursor_set_max_start_depth(TSQueryCursor *, uint32_t);