feat(highlight): mark TSHighlighter fields as pub

This commit is contained in:
Patrick Thomson 2024-12-10 19:37:15 -05:00 committed by GitHub
parent ea9aa018b3
commit 530e0571c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,10 +9,10 @@ use tree_sitter::Language;
use super::{Error, Highlight, HighlightConfiguration, Highlighter, HtmlRenderer};
pub struct TSHighlighter {
languages: HashMap<String, (Option<Regex>, HighlightConfiguration)>,
attribute_strings: Vec<&'static [u8]>,
highlight_names: Vec<String>,
carriage_return_index: Option<usize>,
pub languages: HashMap<String, (Option<Regex>, HighlightConfiguration)>,
pub attribute_strings: Vec<&'static [u8]>,
pub highlight_names: Vec<String>,
pub carriage_return_index: Option<usize>,
}
pub struct TSHighlightBuffer {