summaryrefslogtreecommitdiff
path: root/src/syntax/token.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/token.rs')
-rw-r--r--src/syntax/token.rs4
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",
}
}