diff --git a/trunk_parser/src/parser/mod.rs b/trunk_parser/src/parser/mod.rs index 78b6959..3b7e0a1 100644 --- a/trunk_parser/src/parser/mod.rs +++ b/trunk_parser/src/parser/mod.rs @@ -179,14 +179,14 @@ impl Parser { self.semi()?; Statement::Goto { label } - }, + } TokenKind::Identifier(_) if self.peek.kind == TokenKind::Colon => { let label = self.ident()?.into(); expect!(self, TokenKind::Colon, "expected :"); Statement::Label { label } - }, + } TokenKind::HaltCompiler => { self.next(); @@ -4096,16 +4096,12 @@ mod tests { #[test] fn simple_goto() { - assert_ast("