diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-06-22 17:01:32 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-06-22 17:01:32 +0200 |
| commit | 5de92f6d5e482af412763ba40e55a16102b79b20 (patch) | |
| tree | 1b291d6e66108b6fe0f3e512d4179b5531753eb1 /src/syntax.rs | |
| parent | 099ce71aba54a40455b7ce35768c8fe003f7b16a (diff) | |
Add monospace syntax 📰
Diffstat (limited to 'src/syntax.rs')
| -rw-r--r-- | src/syntax.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/syntax.rs b/src/syntax.rs index c469686b..7d30d894 100644 --- a/src/syntax.rs +++ b/src/syntax.rs @@ -24,10 +24,12 @@ pub enum Token<'s> { /// /// Outside of functions headers, same as with [Colon](Token::Colon). Equals, - /// Two underscores, indicating text in italics. - DoubleUnderscore, - /// Two stars, indicating bold text. - DoubleStar, + /// An underscore, indicating text in italics. + Underscore, + /// A star, indicating bold text. + Star, + /// A backtick, indicating monospace text. + Backtick, /// A line comment. LineComment(&'s str), /// A block comment. @@ -65,6 +67,8 @@ pub enum Node { ToggleItalics, /// Indicates that boldface was enabled / disabled. ToggleBold, + /// Indicates that monospace was enabled / disabled. + ToggleMonospace, /// Literal text. Text(String), /// A function invocation. |
