diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-26 18:07:05 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-26 18:07:05 +0200 |
| commit | 422b8e640f00977177a5a7250a3c56009eed10c4 (patch) | |
| tree | b1a21718e9511d776a6de47b713e3308bb1baaad /src/syntax/token.rs | |
| parent | d53c933e4d56e6c0484d81814779ddb1597ee032 (diff) | |
With expressions
Diffstat (limited to 'src/syntax/token.rs')
| -rw-r--r-- | src/syntax/token.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs index 254a56a2..3f07bb33 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -74,6 +74,8 @@ pub enum Token<'s> { And, /// The `or` operator. Or, + /// The `with` operator. + With, /// The none literal: `none`. None, /// The auto literal: `auto`. @@ -241,6 +243,7 @@ impl<'s> Token<'s> { Self::Not => "operator `not`", Self::And => "operator `and`", Self::Or => "operator `or`", + Self::With => "operator `with`", Self::None => "`none`", Self::Auto => "`auto`", Self::Let => "keyword `let`", |
