From 594809e35b9e768f1a50926cf5e7a9df41ba7d16 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 17 Aug 2021 22:04:18 +0200 Subject: Library functions behave more imperatively - Templates scope state changes - State-modifying function operate in place instead of returning a template - Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map - No more wide calls --- src/syntax/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/syntax/node.rs') diff --git a/src/syntax/node.rs b/src/syntax/node.rs index 2ca861dc..4ff69c17 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -5,8 +5,6 @@ use super::*; pub enum SyntaxNode { /// Whitespace containing less than two newlines. Space, - /// Plain text. - Text(EcoString), /// A forced line break: `\`. Linebreak(Span), /// A paragraph break: Two or more newlines. @@ -15,6 +13,8 @@ pub enum SyntaxNode { Strong(Span), /// Emphasized text was enabled / disabled: `_`. Emph(Span), + /// Plain text. + Text(EcoString), /// A raw block with optional syntax highlighting: `` `...` ``. Raw(Box), /// A section heading: `= Introduction`. -- cgit v1.2.3