Upgrade Tree-sitter for stack-overflow bugfix

This commit is contained in:
Max Brunsfeld 2023-11-27 13:16:50 -08:00
parent 4f885252ab
commit 1c62abbf79
8 changed files with 17 additions and 16 deletions

View file

@ -1300,7 +1300,7 @@ fn assert_capture_ranges(
.collect::<Vec<_>>();
for capture in captures {
let name = &queries[capture.grammar_index].capture_names()[capture.index as usize];
if highlight_query_capture_names.contains(&name.as_str()) {
if highlight_query_capture_names.contains(&name) {
actual_ranges.push(capture.node.byte_range());
}
}