diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index e232ee69b..f3630a295 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -13,14 +13,18 @@ use std::{
use anyhow::{Context, Result};
use arc_swap::{ArcSwap, Guard};
use config::{Configuration, FileType, LanguageConfiguration, LanguageServerConfiguration};
+use foldhash::HashSet;
use helix_loader::grammar::get_language;
use helix_stdx::rope::RopeSliceExt as _;
use once_cell::sync::OnceCell;
use ropey::RopeSlice;
use tree_house::{
highlighter,
- query_iter::QueryIter,
- tree_sitter::{Grammar, InactiveQueryCursor, InputEdit, Node, Query, RopeInput, Tree},
+ query_iter::{QueryIter, QueryIterEvent},
+ tree_sitter::{
+ query::{InvalidPredicateError, UserPredicate},
+ Capture, Grammar, InactiveQueryCursor, InputEdit, Node, Pattern, Query, RopeInput, Tree,
+ },
Error, InjectionLanguageMarker, LanguageConfig as SyntaxConfig, Layer,
};
@@ -37,6 +41,7 @@ pub struct LanguageData {
syntax: OnceCell