mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
parser: add match as soft reserved keyword
This commit is contained in:
parent
e8fe61e430
commit
dc4cb10ac3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user