aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-27 03:14:58 +0000
committerBlaž Hrastnik2021-03-27 03:14:58 +0000
commitb52474cf662310b82b7dbb69cde09000b7369537 (patch)
tree43e1bcaeb6cbc5f43a0bb0756df2d6b50db0e6b9 /helix-core
parenta24c3fff54f319eac42ae6947b910b54ee6fd899 (diff)
clippy lint
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/syntax.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 42bfb855..b29d6165 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -156,14 +156,14 @@ impl Loader {
}
}
-pub struct TSParser {
+pub struct TsParser {
parser: tree_sitter::Parser,
cursors: Vec<QueryCursor>,
}
// could also just use a pool, or a single instance?
thread_local! {
- pub static PARSER: RefCell<TSParser> = RefCell::new(TSParser {
+ pub static PARSER: RefCell<TsParser> = RefCell::new(TsParser {
parser: Parser::new(),
cursors: Vec::new(),
})
@@ -370,7 +370,7 @@ impl LanguageLayer {
fn parse(
&mut self,
- ts_parser: &mut TSParser,
+ ts_parser: &mut TsParser,
config: &HighlightConfiguration,
source: &Rope,
mut depth: usize,
@@ -554,7 +554,7 @@ impl LanguageLayer {
fn update(
&mut self,
- ts_parser: &mut TSParser,
+ ts_parser: &mut TsParser,
config: &HighlightConfiguration,
old_source: &Rope,
source: &Rope,