summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-26 17:12:18 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-26 17:12:18 +0200
commitd7928a8ea347df89f501e5b3ecbb52402cae8edb (patch)
tree0c63d98a96e1e3762d0fec94c7cda3d16817da64 /crates/typst-library/src/text
parent0d39fa021f2aa84c3302242082ea3bf23cc7f99d (diff)
Extract IDE crate
Diffstat (limited to 'crates/typst-library/src/text')
-rw-r--r--crates/typst-library/src/text/raw.rs2
1 files changed, 1 insertions, 1 deletions
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<F>(
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);