feat(lib): add ts_query_end_byte_for_pattern
This commit is contained in:
parent
3095fbe07b
commit
25c7189180
5 changed files with 52 additions and 10 deletions
|
|
@ -838,6 +838,14 @@ uint32_t ts_query_string_count(const TSQuery *self);
|
|||
*/
|
||||
uint32_t ts_query_start_byte_for_pattern(const TSQuery *self, uint32_t pattern_index);
|
||||
|
||||
/**
|
||||
* Get the byte offset where the given pattern ends in the query's source.
|
||||
*
|
||||
* This can be useful when combining queries by concatenating their source
|
||||
* code strings.
|
||||
*/
|
||||
uint32_t ts_query_end_byte_for_pattern(const TSQuery *self, uint32_t pattern_index);
|
||||
|
||||
/**
|
||||
* Get all of the predicates for the given pattern in the query.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue