mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Pin tree-sitter to the 0.20.10 release (#8396)
This commit is contained in:
parent
b5d691a5d7
commit
2ebcc4dbeb
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -2260,7 +2260,8 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "tree-sitter"
|
name = "tree-sitter"
|
||||||
version = "0.20.10"
|
version = "0.20.10"
|
||||||
source = "git+https://github.com/tree-sitter/tree-sitter?rev=ab09ae20d640711174b8da8a654f6b3dec93da1a#ab09ae20d640711174b8da8a654f6b3dec93da1a"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e747b1f9b7b931ed39a548c1fae149101497de3c1fc8d9e18c62c1a66c683d3d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"regex",
|
"regex",
|
||||||
|
@ -35,5 +35,5 @@ package.helix-tui.opt-level = 2
|
|||||||
package.helix-term.opt-level = 2
|
package.helix-term.opt-level = 2
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
tree-sitter = { version = "0.20", git = "https://github.com/tree-sitter/tree-sitter", rev = "ab09ae20d640711174b8da8a654f6b3dec93da1a" }
|
tree-sitter = { version = "0.20" }
|
||||||
nucleo = "0.2.0"
|
nucleo = "0.2.0"
|
||||||
|
@ -1614,7 +1614,7 @@ fn next(&mut self) -> Option<Self::Item> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct RopeProvider<'a>(pub RopeSlice<'a>);
|
pub struct RopeProvider<'a>(pub RopeSlice<'a>);
|
||||||
impl<'a> TextProvider<&'a [u8]> for RopeProvider<'a> {
|
impl<'a> TextProvider<'a> for RopeProvider<'a> {
|
||||||
type I = ChunksBytes<'a>;
|
type I = ChunksBytes<'a>;
|
||||||
|
|
||||||
fn text(&mut self, node: Node) -> Self::I {
|
fn text(&mut self, node: Node) -> Self::I {
|
||||||
@ -1628,7 +1628,7 @@ fn text(&mut self, node: Node) -> Self::I {
|
|||||||
struct HighlightIterLayer<'a> {
|
struct HighlightIterLayer<'a> {
|
||||||
_tree: Option<Tree>,
|
_tree: Option<Tree>,
|
||||||
cursor: QueryCursor,
|
cursor: QueryCursor,
|
||||||
captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>, &'a [u8]>>>,
|
captures: RefCell<iter::Peekable<QueryCaptures<'a, 'a, RopeProvider<'a>>>>,
|
||||||
config: &'a HighlightConfiguration,
|
config: &'a HighlightConfiguration,
|
||||||
highlight_end_stack: Vec<usize>,
|
highlight_end_stack: Vec<usize>,
|
||||||
scope_stack: Vec<LocalScope<'a>>,
|
scope_stack: Vec<LocalScope<'a>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user