From 1a6af3fafe991990fd385eae4c79f41fc4744f76 Mon Sep 17 00:00:00 2001 From: PanGan21 Date: Sun, 1 Sep 2024 14:16:20 +0300 Subject: [PATCH] fix(docs): fix highlight readme example using compatible versions --- highlight/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/highlight/README.md b/highlight/README.md index 982e510a..4ca76d6c 100644 --- a/highlight/README.md +++ b/highlight/README.md @@ -12,8 +12,8 @@ to parse, to your `Cargo.toml`: ```toml [dependencies] -tree-sitter-highlight = "^0.21.0" -tree-sitter-javascript = "0.20.3" +tree-sitter-highlight = "0.22.0" +tree-sitter-javascript = "0.21.3" ``` Define the list of highlight names that you will recognize: @@ -61,9 +61,8 @@ let mut javascript_config = HighlightConfiguration::new( javascript_language, "javascript", tree_sitter_javascript::HIGHLIGHT_QUERY, - tree_sitter_javascript::INJECTION_QUERY, + tree_sitter_javascript::INJECTIONS_QUERY, tree_sitter_javascript::LOCALS_QUERY, - false, ).unwrap(); ```