parser: allow reserved ident as interface method names

This commit is contained in:
Ryan Chandler 2022-11-30 01:00:48 +00:00
parent 9a2109b31d
commit 1551dcb2df
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -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()?;