diff options
author | Blaž Hrastnik | 2023-10-26 06:58:10 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-10-26 06:58:10 +0000 |
commit | 5ce1c30f775ba74b2b061655aea4441d8beaa445 (patch) | |
tree | 9d32b63fdb5c67c09f9cf84a2c11f04e6e4c80d9 /helix-core | |
parent | c24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 (diff) |
Revert "Pin tree-sitter to the 0.20.10 release (#8396)"
We only reverted so that the latest release would use a stable
tree-sitter version hosted on crates.io. We do want the improvements
on nightly.
This reverts commit 2ebcc4dbeb306cc285d47bd1d21d72c7e57ecb72.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 97a88224..881b4509 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -1614,7 +1614,7 @@ impl<'a> Iterator for ChunksBytes<'a> { } pub struct RopeProvider<'a>(pub RopeSlice<'a>); -impl<'a> TextProvider<'a> for RopeProvider<'a> { +impl<'a> TextProvider<&'a [u8]> for RopeProvider<'a> { type I = ChunksBytes<'a>; fn text(&mut self, node: Node) -> Self::I { @@ -1628,7 +1628,7 @@ impl<'a> TextProvider<'a> for RopeProvider<'a> { struct HighlightIterLayer<'a> { _tree: Option<Tree>, cursor: QueryCursor, - captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>>>>, + captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>, &'a [u8]>>>, config: &'a HighlightConfiguration, highlight_end_stack: Vec<usize>, scope_stack: Vec<LocalScope<'a>>, |