mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
parser: allow reserved ident as interface method names
This commit is contained in:
parent
9a2109b31d
commit
1551dcb2df
@ -746,7 +746,7 @@ impl Parser {
|
||||
|
||||
self.next();
|
||||
|
||||
let name = self.ident()?;
|
||||
let name = self.ident_maybe_reserved()?;
|
||||
|
||||
self.lparen()?;
|
||||
|
||||
@ -778,7 +778,7 @@ impl Parser {
|
||||
TokenKind::Function => {
|
||||
self.next();
|
||||
|
||||
let name = self.ident()?;
|
||||
let name = self.ident_maybe_reserved()?;
|
||||
|
||||
self.lparen()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user