diff --git a/src/parser/mod.rs b/src/parser/mod.rs index f1eebea..7fbde6e 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -89,7 +89,7 @@ impl Parser { let token = self.next_token(); match token.kind { - TokenKind::Keyword(_) => Ok(()), + TokenKind::Keyword(k) if k == keyword => Ok(()), other => Err(format!("Expected SemiColon, found {:?}", other)), } }