summaryrefslogtreecommitdiff
path: root/src/library/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-10-17 19:26:24 +0200
committerLaurenz <laurmaedje@gmail.com>2022-10-17 20:04:22 +0200
commite21822665591dc19766275da1e185215a6b945ef (patch)
tree7788e211c3c33c8b5a8ad7d5eb7574e33631eb16 /src/library/text
parent4fd031a256b2ecfe524859d5599fafb386395572 (diff)
Merge some modules
Diffstat (limited to 'src/library/text')
-rw-r--r--src/library/text/lang.rs2
-rw-r--r--src/library/text/quotes.rs2
-rw-r--r--src/library/text/raw.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/library/text/lang.rs b/src/library/text/lang.rs
index b75b3cd8..f2193f05 100644
--- a/src/library/text/lang.rs
+++ b/src/library/text/lang.rs
@@ -1,5 +1,5 @@
-use crate::eval::Value;
use crate::geom::Dir;
+use crate::model::Value;
/// A code for a natural language.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
diff --git a/src/library/text/quotes.rs b/src/library/text/quotes.rs
index 98402ca4..0a22646a 100644
--- a/src/library/text/quotes.rs
+++ b/src/library/text/quotes.rs
@@ -1,5 +1,5 @@
use super::{Lang, Region};
-use crate::parse::is_newline;
+use crate::syntax::is_newline;
/// State machine for smart quote subtitution.
#[derive(Debug, Clone)]
diff --git a/src/library/text/raw.rs b/src/library/text/raw.rs
index 8b0874f8..35160073 100644
--- a/src/library/text/raw.rs
+++ b/src/library/text/raw.rs
@@ -72,8 +72,8 @@ impl Show for RawNode {
let mut realized = if matches!(lang.as_deref(), Some("typ" | "typst" | "typc")) {
let root = match lang.as_deref() {
- Some("typc") => crate::parse::parse_code(&self.text),
- _ => crate::parse::parse(&self.text),
+ Some("typc") => crate::syntax::parse_code(&self.text),
+ _ => crate::syntax::parse(&self.text),
};
let mut seq = vec![];