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/parse/parser.rs | |
| parent | 59d811aeba4491d54d2b0220109fd21a8f838b9b (diff) | |
Remove star-slash token ❌
Diffstat (limited to 'src/parse/parser.rs')
| -rw-r--r-- | src/parse/parser.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs index f6acff6e..974bf521 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -80,10 +80,7 @@ impl<'s> Parser<'s> { let before = self.next_start; if let Some(found) = self.eat() { let after = self.last_end; - self.diag(match found { - Token::Invalid(_) => error!(before .. after, "invalid token"), - _ => error!(before .. after, "unexpected {}", found.name()), - }); + self.diag(error!(before .. after, "unexpected {}", found.name())); } } |
