diff --git a/lib/binding_rust/bindings.rs b/lib/binding_rust/bindings.rs index 158d1ba1..24751e4d 100644 --- a/lib/binding_rust/bindings.rs +++ b/lib/binding_rust/bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.64.0 */ +/* automatically generated by rust-bindgen 0.65.1 */ pub type TSSymbol = u16; pub type TSFieldId = u16; @@ -565,9 +565,6 @@ extern "C" { extern "C" { pub fn ts_query_cursor_set_point_range(arg1: *mut TSQueryCursor, arg2: TSPoint, arg3: TSPoint); } -extern "C" { - pub fn ts_query_cursor_set_max_start_depth(arg1: *mut TSQueryCursor, arg2: u32); -} extern "C" { #[doc = " Advance to the next match of the currently running query.\n\n If there is a match, write it to `*match` and return `true`.\n Otherwise, return `false`."] pub fn ts_query_cursor_next_match(arg1: *mut TSQueryCursor, match_: *mut TSQueryMatch) -> bool; @@ -583,6 +580,10 @@ extern "C" { capture_index: *mut u32, ) -> bool; } +extern "C" { + #[doc = " Set the maximum start depth for a cursor.\n\n This prevents cursors from exploring children nodes at a certain depth.\n Note if a pattern includes many children, then they will still be checked.\n\n Set to `0` to remove the maximum start depth."] + pub fn ts_query_cursor_set_max_start_depth(arg1: *mut TSQueryCursor, arg2: u32); +} extern "C" { #[doc = " Get the number of distinct node types in the language."] pub fn ts_language_symbol_count(arg1: *const TSLanguage) -> u32; diff --git a/script/generate-bindings b/script/generate-bindings index 19975d37..25499c0e 100755 --- a/script/generate-bindings +++ b/script/generate-bindings @@ -8,7 +8,6 @@ bindgen \ --allowlist-type '^TS.*' \ --allowlist-function '^ts_.*' \ --blocklist-type '^__.*' \ - --size_t-is-usize \ $header_path > $output_path echo "" >> $output_path