Browse Source

Fix keyword recognition

github-actions
Garrit Franke 3 years ago
parent
commit
5ec9bf4cdc
  1. 2
      src/parser/mod.rs

2
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)),
}
}

Loading…
Cancel
Save