summaryrefslogtreecommitdiff
path: root/src/syntax/token.rs
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2021-11-01 10:57:45 +0100
committerMartin Haug <mhaug@live.de>2021-11-05 13:44:50 +0100
commit7d34a548ccd14debe0668e23454e1ced70e485ec (patch)
treefe99070ed803a976dfc3f52c9ed8468cc98234d4 /src/syntax/token.rs
parent2e7d359e59a45849f53eea6e022ca83295f5a6e7 (diff)
Reorganize syntax module
Diffstat (limited to 'src/syntax/token.rs')
-rw-r--r--src/syntax/token.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs
deleted file mode 100644
index 4f43bb4f..00000000
--- a/src/syntax/token.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-use crate::util::EcoString;
-
-/// A quoted string token: `"..."`.
-#[derive(Debug, Clone, PartialEq)]
-#[repr(transparent)]
-pub struct StrToken {
- /// The string inside the quotes.
- pub string: EcoString,
-}
-
-/// A raw block token: `` `...` ``.
-#[derive(Debug, Clone, PartialEq)]
-pub struct RawToken {
- /// The raw text in the block.
- pub text: EcoString,
- /// The programming language of the raw text.
- pub lang: Option<EcoString>,
- /// The number of opening backticks.
- pub backticks: u8,
- /// Whether to display this as a block.
- pub block: bool,
-}
-
-/// A math formula token: `$2pi + x$` or `$[f'(x) = x^2]$`.
-#[derive(Debug, Clone, PartialEq)]
-pub struct MathToken {
- /// The formula between the dollars.
- pub formula: EcoString,
- /// Whether the formula is display-level, that is, it is surrounded by
- /// `$[..]`.
- pub display: bool,
-}
-
-/// A unicode escape sequence token: `\u{1F5FA}`.
-#[derive(Debug, Clone, PartialEq)]
-#[repr(transparent)]
-pub struct UnicodeEscapeToken {
- /// The resulting unicode character.
- pub character: char,
-}