Skip to content

Commit 88ac3ab

Browse files
authored
docs(highlight): update README with the new way to load languages
1 parent ad133ec commit 88ac3ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

highlight/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ to parse, to your `Cargo.toml`:
1212

1313
```toml
1414
[dependencies]
15-
tree-sitter-highlight = "0.22.0"
16-
tree-sitter-javascript = "0.21.3"
15+
tree-sitter-highlight = "0.25.4"
16+
tree-sitter-javascript = "0.23.1"
1717
```
1818

1919
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
6363
```rust
6464
use tree_sitter_highlight::HighlightConfiguration;
6565

66-
let javascript_language = tree_sitter_javascript::language();
66+
let javascript_language = tree_sitter_javascript::LANGUAGE.into();
6767

6868
let mut javascript_config = HighlightConfiguration::new(
6969
javascript_language,

0 commit comments

Comments
 (0)