From 88ac3abaa1f4187d1b922df81f77b3a20a4b2cdd Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Thu, 5 Jun 2025 08:41:00 +0200 Subject: [PATCH] docs(highlight): update README with the new way to load languages --- highlight/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/highlight/README.md b/highlight/README.md index 73e16b28..edb89708 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.22.0" -tree-sitter-javascript = "0.21.3" +tree-sitter-highlight = "0.25.4" +tree-sitter-javascript = "0.23.1" ``` Define the list of highlight names that you will recognize: @@ -63,7 +63,7 @@ Load some highlighting queries from the `queries` directory of the language repo ```rust use tree_sitter_highlight::HighlightConfiguration; -let javascript_language = tree_sitter_javascript::language(); +let javascript_language = tree_sitter_javascript::LANGUAGE.into(); let mut javascript_config = HighlightConfiguration::new( javascript_language,