summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-30 18:55:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-30 18:55:50 +0100
commitf3bdc9d3daca2c26c4cc745be48a5ce1c8a10641 (patch)
tree05976cd56e414d47d1e2d0bb79fa83893b6daa15 /src/syntax/mod.rs
parente915cc4ef04de70297a3e840a363382dd2689f7b (diff)
Syntax highlighting
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index 55a43853..e9011a4d 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -1,12 +1,14 @@
//! Syntax types.
pub mod ast;
+mod highlight;
mod pretty;
mod span;
use std::fmt::{self, Debug, Display, Formatter};
use std::rc::Rc;
+pub use highlight::*;
pub use pretty::*;
pub use span::*;
@@ -503,7 +505,7 @@ pub enum NodeKind {
EmDash,
/// A slash and the letter "u" followed by a hexadecimal unicode entity
/// enclosed in curly braces: `\u{1F5FA}`.
- UnicodeEscape(char),
+ Escape(char),
/// Strong text was enabled / disabled: `*`.
Strong,
/// Emphasized text was enabled / disabled: `_`.
@@ -689,7 +691,7 @@ impl NodeKind {
Self::NonBreakingSpace => "non-breaking space",
Self::EnDash => "en dash",
Self::EmDash => "em dash",
- Self::UnicodeEscape(_) => "unicode escape sequence",
+ Self::Escape(_) => "escape sequence",
Self::Strong => "strong",
Self::Emph => "emphasis",
Self::Heading => "heading",