diff options
author | Blaž Hrastnik | 2021-11-06 15:21:03 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-01-23 07:00:24 +0000 |
commit | 6728e4449038e9481b72251441182d508c165a9c (patch) | |
tree | 2967675e350be4b6daf815a6662a644b76239882 /helix-core/src/indent.rs | |
parent | 83bde1004d596740a7bb63ec7fe2271734492f59 (diff) |
syntax: Split parsing and highlighting
Diffstat (limited to 'helix-core/src/indent.rs')
-rw-r--r-- | helix-core/src/indent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index 1fc2b8a5..ac2a1208 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -454,7 +454,7 @@ where let language_config = loader.language_config_for_scope("source.rust").unwrap(); let highlight_config = language_config.highlight_config(&[]).unwrap(); - let syntax = Syntax::new(&doc, highlight_config.clone()); + let syntax = Syntax::new(&doc, highlight_config.clone(), std::sync::Arc::new(loader)); let text = doc.slice(..); let tab_width = 4; |