diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-07 18:06:27 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-07 18:17:47 +0200 |
| commit | f26526ba75582f24d2bae18a43de3f6622c588ec (patch) | |
| tree | d5faa4a1e8354344a5aae023517a81f8521e5ef7 /src/syntax | |
| parent | 7218892c722ca583297c0ebbda350bdf6f16d3ce (diff) | |
Switch back to hashtags for headings
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/token.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs index 3484536d..538d81b7 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -20,8 +20,8 @@ pub enum Token<'s> { Star, /// An underscore: `_`. Underscore, - /// A single equals sign: `=`. - Eq, + /// A single hashtag: `#`. + Hashtag, /// A tilde: `~`. Tilde, /// A backslash followed by nothing or whitespace: `\`. @@ -38,6 +38,8 @@ pub enum Token<'s> { Hyph, /// A slash: `/`. Slash, + /// A single equals sign: `=`. + Eq, /// Two equals signs: `==`. EqEq, /// An exclamation mark followed by an equals sign: `!=`. @@ -200,6 +202,7 @@ impl<'s> Token<'s> { Self::RightParen => "closing paren", Self::Star => "star", Self::Underscore => "underscore", + Self::Hashtag => "hashtag", Self::Tilde => "tilde", Self::Backslash => "backslash", Self::Comma => "comma", |
