diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-07 16:13:18 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-07 16:13:18 +0100 |
| commit | 8275b186ba75b5e75a4108105c1ea3bfdbe6ada2 (patch) | |
| tree | 14c813ddd3dfd9d4e9bd06a5b049623dcbc666cb /src/syntax | |
| parent | 59d811aeba4491d54d2b0220109fd21a8f838b9b (diff) | |
Remove star-slash token ❌
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/token.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/syntax/token.rs b/src/syntax/token.rs index 9a7379ca..78519962 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -17,8 +17,6 @@ pub enum Token<'s> { /// /// The comment can contain nested block comments. BlockComment(&'s str), - /// An end of a block comment that was not started. - StarSlash, /// A left bracket: `[`. LeftBracket, @@ -129,7 +127,6 @@ impl<'s> Token<'s> { Self::LineComment(_) => "line comment", Self::BlockComment(_) => "block comment", - Self::StarSlash => "end of block comment", Self::LeftBracket => "opening bracket", Self::RightBracket => "closing bracket", @@ -163,6 +160,7 @@ impl<'s> Token<'s> { Self::Hex(_) => "hex value", Self::Str { .. } => "string", + Self::Invalid("*/") => "end of block comment", Self::Invalid(_) => "invalid token", } } |
