Add ts_query_disable_capture API
This commit is contained in:
parent
4c17af3ecd
commit
f490befcde
4 changed files with 46 additions and 2 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue