Add ts_query_disable_capture API

This commit is contained in:
Max Brunsfeld 2019-09-26 15:58:41 -07:00
parent 4c17af3ecd
commit f490befcde
4 changed files with 46 additions and 2 deletions

View file

@ -716,6 +716,13 @@ const char *ts_query_string_value_for_id(
uint32_t *length
);
/**
* Disable a certain capture within a query. This prevents the capture
* from being returned in matches, and also avoids any resource usage
* associated with recording the capture.
*/
void ts_query_disable_capture(TSQuery *, const char *, uint32_t);
/**
* Create a new cursor for executing a given query.
*