diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-04-30 09:15:31 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-04-30 09:20:22 +0200 |
| commit | 9d605c3128bcb20c51988ecea72c956a79f4306b (patch) | |
| tree | b764aaa51e6f5286ece5796dea568eb33c522339 /src/syntax.rs | |
| parent | 90848df5de3cf2e7d99ee8c2a7a07b768f207f7a (diff) | |
Remove the concept of words from tokenization 🎈
Diffstat (limited to 'src/syntax.rs')
| -rw-r--r-- | src/syntax.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax.rs b/src/syntax.rs index bad7ab26..a8ae930d 100644 --- a/src/syntax.rs +++ b/src/syntax.rs @@ -30,8 +30,8 @@ pub enum Token<'s> { Dollar, /// A hashtag starting a _comment_. Hashtag, - /// Everything else just is a literal word. - Word(&'s str), + /// Everything else is just text. + Text(&'s str), } /// A tree representation of the source. @@ -62,8 +62,8 @@ pub enum Node { ToggleBold, /// Indicates that math mode was enabled/disabled. ToggleMath, - /// A literal word. - Word(String), + /// Literal text. + Text(String), /// A function invocation. Func(FuncCall), } |
