aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/markdown.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-16 06:47:51 +0000
committerBlaž Hrastnik2021-09-16 06:50:14 +0000
commitdd0b15e1f1540d6ca8c58594be302c66005d755c (patch)
tree102ea032e8b35b93d73a43c8f36af6fc203bafea /helix-term/src/ui/markdown.rs
parentef532e0c0df3e9f8bf4ac5af74b54f32b7ea2728 (diff)
syntax: Properly handle injection-regex for language injections
Diffstat (limited to 'helix-term/src/ui/markdown.rs')
-rw-r--r--helix-term/src/ui/markdown.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs
index 87b35a2d..4144ed3c 100644
--- a/helix-term/src/ui/markdown.rs
+++ b/helix-term/src/ui/markdown.rs
@@ -88,7 +88,7 @@ fn parse<'a>(
if let Some(theme) = theme {
let rope = Rope::from(text.as_ref());
let syntax = loader
- .language_config_for_scope(&format!("source.{}", language))
+ .language_configuration_for_injection_string(language)
.and_then(|config| config.highlight_config(theme.scopes()))
.map(|config| Syntax::new(&rope, config));