fix(docs): fix highlight readme example using compatible versions
This commit is contained in:
parent
c6faeb948e
commit
1a6af3fafe
1 changed files with 3 additions and 4 deletions
|
|
@ -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();
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue