From 8275b186ba75b5e75a4108105c1ea3bfdbe6ada2 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 7 Jan 2021 16:13:18 +0100 Subject: =?UTF-8?q?Remove=20star-slash=20token=20=E2=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/token.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/syntax') 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", } } -- cgit v1.2.3