Skip to content

Commit ad8e698

Browse files
TiggilybooSimon Willshire
andauthored
Tree sitter 0.20, Missing HIGHLIGHT_QUERY Rust binding (#221)
* Tree sitter 0.20 * Add missing query bindings for rust Co-authored-by: Simon Willshire <[email protected]>
1 parent 00917d3 commit ad8e698

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include = [
3030
path = "bindings/rust/lib.rs"
3131

3232
[dependencies]
33-
tree-sitter = ">= 0.19, < 0.21"
33+
tree-sitter = "0.20"
3434

3535
[build-dependencies]
3636
cc = "1.0"

bindings/rust/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json");
5454
/// The symbol tagging query for this language.
5555
pub const TAGGING_QUERY: &'static str = include_str!("../../queries/tags.scm");
5656

57+
/// The syntax highlighting query for this language.
58+
pub const HIGHLIGHT_QUERY: &'static str = include_str!("../../queries/highlights.scm");
59+
5760
#[cfg(test)]
5861
mod tests {
5962
#[test]

0 commit comments

Comments
 (0)