Highlight.highlight does not mutate
This commit is contained in:
parent
8a675d184c
commit
eabecafa8d
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ pub extern "C" fn ts_highlighter_highlight(
|
||||||
|
|
||||||
impl TSHighlighter {
|
impl TSHighlighter {
|
||||||
fn highlight(
|
fn highlight(
|
||||||
&mut self,
|
&self,
|
||||||
source_code: &[u8],
|
source_code: &[u8],
|
||||||
scope_name: &str,
|
scope_name: &str,
|
||||||
output: &mut TSHighlightBuffer,
|
output: &mut TSHighlightBuffer,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue