mirror of https://github.com/helix-editor/helix
chore: update to new version of my PR to tree-sitter
parent
96f8c58dde
commit
600bdae69f
|
@ -2801,7 +2801,7 @@ checksum = "bfb942dfe1d8e29a7ee7fcbde5bd2b9a25fb89aa70caea2eba3bee836ff41076"
|
|||
[[package]]
|
||||
name = "tree-house"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/nik-rev/tree-house?rev=5d24d0014336342e3b2c3456df0c26e8ee602101#5d24d0014336342e3b2c3456df0c26e8ee602101"
|
||||
source = "git+https://github.com/nik-rev/tree-house?rev=ae033326f7c5355f2fb8673cefc579ffcb92f508#ae033326f7c5355f2fb8673cefc579ffcb92f508"
|
||||
dependencies = [
|
||||
"arc-swap",
|
||||
"hashbrown 0.15.2",
|
||||
|
@ -2817,7 +2817,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "tree-house-bindings"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/nik-rev/tree-house?rev=5d24d0014336342e3b2c3456df0c26e8ee602101#5d24d0014336342e3b2c3456df0c26e8ee602101"
|
||||
source = "git+https://github.com/nik-rev/tree-house?rev=ae033326f7c5355f2fb8673cefc579ffcb92f508#ae033326f7c5355f2fb8673cefc579ffcb92f508"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libloading",
|
||||
|
|
|
@ -37,7 +37,7 @@ package.helix-tui.opt-level = 2
|
|||
package.helix-term.opt-level = 2
|
||||
|
||||
[workspace.dependencies]
|
||||
tree-house = { git = "https://github.com/nik-rev/tree-house", rev = "5d24d0014336342e3b2c3456df0c26e8ee602101", default-features = false }
|
||||
tree-house = { git = "https://github.com/nik-rev/tree-house", rev = "ae033326f7c5355f2fb8673cefc579ffcb92f508", default-features = false }
|
||||
nucleo = "0.5.0"
|
||||
slotmap = "1.0.7"
|
||||
thiserror = "2.0"
|
||||
|
|
|
@ -57,6 +57,7 @@ pub fn get_injected_tokens(
|
|||
.and_then(|syntax| {
|
||||
syntax
|
||||
.layers_for_byte_range(start, end)
|
||||
.collect::<Vec<_>>()
|
||||
.into_iter()
|
||||
.rev()
|
||||
.find_map(|layer| {
|
||||
|
|
|
@ -450,7 +450,7 @@ impl Syntax {
|
|||
self.inner.layer_for_byte_range(start, end)
|
||||
}
|
||||
|
||||
pub fn layers_for_byte_range(&self, start: u32, end: u32) -> Vec<Layer> {
|
||||
pub fn layers_for_byte_range(&self, start: u32, end: u32) -> impl Iterator<Item = Layer> + use<'_> {
|
||||
self.inner.layers_for_byte_range(start, end)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue