Fix bug where patterns with top-level alternatives were not considered 'rooted'
This commit is contained in:
parent
1401767689
commit
548c12fb88
5 changed files with 169 additions and 22 deletions
|
|
@ -658,6 +658,9 @@ extern "C" {
|
|||
length: *mut u32,
|
||||
) -> *const TSQueryPredicateStep;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ts_query_is_pattern_rooted(self_: *const TSQuery, pattern_index: u32) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn ts_query_is_pattern_guaranteed_at_step(self_: *const TSQuery, byte_offset: u32) -> bool;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue