aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/indent.rs
diff options
context:
space:
mode:
authorMichael Davis2024-01-15 06:33:26 +0000
committerGitHub2024-01-15 06:33:26 +0000
commit3011df4f35e43f9f7690b236c85ab54f210c8b3a (patch)
tree494c62b061d19bbfb4c2ce68b3a5b57d7bea7d74 /helix-core/src/indent.rs
parent445f7a273a27d74d8168eab7941dcb3479d31ebe (diff)
Bump tree-sitter to latest master (#9317)
* query capture names now return `&str`s rather than `String`s * the `#any-of?` predicate is now supported
Diffstat (limited to 'helix-core/src/indent.rs')
-rw-r--r--helix-core/src/indent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index 1e90db47..c29bb3a0 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -551,7 +551,7 @@ fn query_indents<'a>(
// The row/column position of the optional anchor in this query
let mut anchor: Option<tree_sitter::Node> = None;
for capture in m.captures {
- let capture_name = query.capture_names()[capture.index as usize].as_str();
+ let capture_name = query.capture_names()[capture.index as usize];
let capture_type = match capture_name {
"indent" => IndentCaptureType::Indent,
"indent.always" => IndentCaptureType::IndentAlways,