From d7928a8ea347df89f501e5b3ecbb52402cae8edb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 26 Sep 2023 17:12:18 +0200 Subject: Extract IDE crate --- crates/typst-library/src/text/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/typst-library/src/text') diff --git a/crates/typst-library/src/text/raw.rs b/crates/typst-library/src/text/raw.rs index 688e69d8..dfd71275 100644 --- a/crates/typst-library/src/text/raw.rs +++ b/crates/typst-library/src/text/raw.rs @@ -423,7 +423,7 @@ fn highlight_themed( for child in node.children() { let mut scopes = scopes.clone(); - if let Some(tag) = typst::ide::highlight(&child) { + if let Some(tag) = typst::syntax::highlight(&child) { scopes.push(syntect::parsing::Scope::new(tag.tm_scope()).unwrap()) } highlight_themed(&child, scopes, highlighter, f); -- cgit v1.2.3