Expose capture suffixes in queries

This commit is contained in:
Hendrik van Antwerpen 2021-11-23 19:22:24 +01:00
parent e81976d27a
commit ae7869d1a6
4 changed files with 92 additions and 10 deletions

View file

@ -665,6 +665,15 @@ extern "C" {
length: *mut u32,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
#[doc = " Get the suffix of one of the query's captures, or one of the query's"]
#[doc = " string literals. Each capture and string is associated with a numeric"]
#[doc = " id based on the order that it appeared in the query's source."]
pub fn ts_query_capture_suffix_for_id(
arg1: *const TSQuery,
id: u32,
) -> ::std::os::raw::c_char;
}
extern "C" {
pub fn ts_query_string_value_for_id(
arg1: *const TSQuery,