summaryrefslogtreecommitdiff
path: root/src/syntax/node.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-03 00:12:09 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-03 00:12:09 +0100
commitaae67bd572ad86f4c57e364daa51a9dc883b8913 (patch)
tree0aba021e0748ebad2197ea390385ec5f93ccbc6e /src/syntax/node.rs
parent1c40dc42e7bc7b799b77f06d25414aca59a044ba (diff)
Move and rename many things 🚛
Diffstat (limited to 'src/syntax/node.rs')
-rw-r--r--src/syntax/node.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/syntax/node.rs b/src/syntax/node.rs
index cee810a2..d64d4fed 100644
--- a/src/syntax/node.rs
+++ b/src/syntax/node.rs
@@ -1,11 +1,8 @@
-//! Syntax tree nodes.
-
use super::*;
-/// A syntax node, which encompasses a single logical entity of parsed source
-/// code.
+/// A syntax node, encompassing a single logical entity of parsed source code.
#[derive(Debug, Clone, PartialEq)]
-pub enum SynNode {
+pub enum Node {
/// Plain text.
Text(String),
@@ -36,7 +33,7 @@ pub struct NodeHeading {
/// The section depth (numer of hashtags minus 1).
pub level: Spanned<u8>,
/// The contents of the heading.
- pub contents: SynTree,
+ pub contents: Tree,
}
/// A raw block with optional syntax highlighting: `` `raw` ``.