parser: add match as soft reserved keyword

This commit is contained in:
Ryan Chandler 2022-08-09 11:56:23 +01:00
parent e8fe61e430
commit dc4cb10ac3
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -38,7 +38,7 @@ impl Parser {
TokenKind::Static | TokenKind::Abstract | TokenKind::Final | TokenKind::For |
TokenKind::Private | TokenKind::Protected | TokenKind::Public | TokenKind::Require |
TokenKind::RequireOnce | TokenKind::New | TokenKind::Clone | TokenKind::If |
TokenKind::Else | TokenKind::ElseIf | TokenKind::Default | TokenKind::Enum => {
TokenKind::Else | TokenKind::ElseIf | TokenKind::Default | TokenKind::Enum | TokenKind::Match => {
let string = self.current.kind.to_string();
self.next();
Ok(string)