update readme accordingly
This commit is contained in:
parent
9feca80b08
commit
005eb12cfe
1 changed files with 2 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ tree-sitter-javascript = "0.19"
|
|||
Define the list of highlight names that you will recognize:
|
||||
|
||||
```rust
|
||||
let highlight_names : Vec<String> = [
|
||||
let highlight_names = &[
|
||||
"attribute",
|
||||
"constant",
|
||||
"function.builtin",
|
||||
|
|
@ -37,11 +37,7 @@ let highlight_names : Vec<String> = [
|
|||
"variable",
|
||||
"variable.builtin",
|
||||
"variable.parameter",
|
||||
]
|
||||
.iter()
|
||||
.cloned()
|
||||
.map(String::from)
|
||||
.collect();
|
||||
];
|
||||
```
|
||||
|
||||
Create a highlighter. You need one of these for each thread that you're using for syntax highlighting:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue