mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
parser: allow reserved words in class method names
This commit is contained in:
parent
5d95a8985c
commit
8cf226a35d
@ -1294,7 +1294,8 @@ impl Parser {
|
||||
false
|
||||
};
|
||||
|
||||
let name = self.ident()?;
|
||||
// FIXME: We should only allow reserved words for class methods, not top-level functions.
|
||||
let name = self.ident_maybe_reserved()?;
|
||||
|
||||
self.lparen()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user