@@ -156,14 +156,14 @@ impl Loader {
159−pub struct TSParser {
159+pub struct TsParser {
160 parser: tree_sitter::Parser,
160 parser: tree_sitter::Parser,
161 cursors: Vec<QueryCursor>,
161 cursors: Vec<QueryCursor>,
164// could also just use a pool, or a single instance?
164// could also just use a pool, or a single instance?
165thread_local! {
165thread_local! {
166− pub static PARSER: RefCell<TSParser> = RefCell::new(TSParser {
166+ pub static PARSER: RefCell<TsParser> = RefCell::new(TsParser {
167 parser: Parser::new(),
167 parser: Parser::new(),
168 cursors: Vec::new(),
168 cursors: Vec::new(),
@@ -370,7 +370,7 @@ impl LanguageLayer {
371 fn parse(
371 fn parse(
372 &mut self,
372 &mut self,
373− ts_parser: &mut TSParser,
373+ ts_parser: &mut TsParser,
374 config: &HighlightConfiguration,
374 config: &HighlightConfiguration,
375 source: &Rope,
375 source: &Rope,
376 mut depth: usize,
376 mut depth: usize,
@@ -554,7 +554,7 @@ impl LanguageLayer {
555 fn update(
555 fn update(
556 &mut self,
556 &mut self,
557− ts_parser: &mut TSParser,
557+ ts_parser: &mut TsParser,
558 config: &HighlightConfiguration,
558 config: &HighlightConfiguration,
559 old_source: &Rope,
559 old_source: &Rope,
560 source: &Rope,
560 source: &Rope,