summaryrefslogtreecommitdiff
path: root/src/syntax/node.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-10 13:07:39 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-10 13:07:39 +0200
commit36b3067c19c8743032a44f888ee48702b88d135b (patch)
tree89893f4501109b35bb6498b93bda4f3cc82dba40 /src/syntax/node.rs
parent9950627789358b4d46c7fd8ba20d1428aee7bf01 (diff)
Eco string 🌱
Diffstat (limited to 'src/syntax/node.rs')
-rw-r--r--src/syntax/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/node.rs b/src/syntax/node.rs
index 1fbdb3d8..bb9ff098 100644
--- a/src/syntax/node.rs
+++ b/src/syntax/node.rs
@@ -6,7 +6,7 @@ use super::*;
#[derive(Debug, Clone, PartialEq)]
pub enum Node {
/// Plain text.
- Text(String),
+ Text(EcoString),
/// Whitespace containing less than two newlines.
Space,
/// A forced line break: `\`.
@@ -38,7 +38,7 @@ pub struct RawNode {
pub lang: Option<Ident>,
/// The raw text, determined as the raw string between the backticks trimmed
/// according to the above rules.
- pub text: String,
+ pub text: EcoString,
/// Whether the element is block-level, that is, it has 3+ backticks
/// and contains at least one newline.
pub block: bool,