summaryrefslogtreecommitdiff
path: root/src/syntax/node.rs
diff options
context:
space:
mode:
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` ``.