From 264a7dedd42e27cd9e604037640cf0594b2ec46b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 19 Mar 2021 17:57:31 +0100 Subject: =?UTF-8?q?Scheduled=20maintenance=20=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New naming scheme - TextNode instead of NodeText - CallExpr instead of ExprCall - ... - Less glob imports - Removes Value::Args variant - Removes prelude - Renames Layouted to Fragment - Moves font into env - Moves shaping into layout - Moves frame into separate module --- src/syntax/node.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/syntax/node.rs') diff --git a/src/syntax/node.rs b/src/syntax/node.rs index 19fdfa50..c94ee5b0 100644 --- a/src/syntax/node.rs +++ b/src/syntax/node.rs @@ -16,23 +16,23 @@ pub enum Node { /// Plain text. Text(String), /// A section heading. - Heading(NodeHeading), + Heading(HeadingNode), /// An optionally syntax-highlighted raw block. - Raw(NodeRaw), + Raw(RawNode), /// An expression. Expr(Expr), } /// A section heading: `= Introduction`. #[derive(Debug, Clone, PartialEq)] -pub struct NodeHeading { +pub struct HeadingNode { /// The section depth (numer of equals signs minus 1). pub level: usize, /// The contents of the heading. pub contents: Tree, } -/// A raw block with optional syntax highlighting: `` `raw` ``. +/// A raw block with optional syntax highlighting: `` `...` ``. /// /// Raw blocks start with 1 or 3+ backticks and end with the same number of /// backticks. @@ -96,7 +96,7 @@ pub struct NodeHeading { /// Note that with these rules you can always force leading or trailing /// whitespace simply by adding more spaces. #[derive(Debug, Clone, PartialEq)] -pub struct NodeRaw { +pub struct RawNode { /// An optional identifier specifying the language to syntax-highlight in. pub lang: Option, /// The lines of raw text, determined as the raw string between the -- cgit v1.2.3