Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-syntax/src/injections_tree.rs')
| -rw-r--r-- | helix-syntax/src/injections_tree.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-syntax/src/injections_tree.rs b/helix-syntax/src/injections_tree.rs index fdc53e49..793039a3 100644 --- a/helix-syntax/src/injections_tree.rs +++ b/helix-syntax/src/injections_tree.rs @@ -4,9 +4,9 @@ use std::sync::Arc; use hashbrown::HashMap; use slotmap::{new_key_type, SlotMap}; -use tree_sitter::Tree; use crate::parse::LayerUpdateFlags; +use crate::tree_sitter::SyntaxTree; use crate::{HighlightConfiguration, RopeProvider}; // TODO(perf): replace std::ops::Range with helix_core::Range once added @@ -20,7 +20,7 @@ new_key_type! { #[derive(Debug)] pub struct LanguageLayer { pub config: Arc<HighlightConfiguration>, - pub(crate) parse_tree: Option<Tree>, + pub(crate) parse_tree: Option<SyntaxTree>, /// internal flags used during parsing to track incremental invalidation pub(crate) flags: LayerUpdateFlags, pub(crate) parent: Option<LayerId>, |