Highlight.highlight does not mutate

This commit is contained in:
Max Brunsfeld 2019-03-12 17:24:21 -07:00
parent 8a675d184c
commit eabecafa8d

View file

@ -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,