From 1551dcb2dfc1350904f66b69f80c3c0aec6826a5 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Wed, 30 Nov 2022 01:00:48 +0000 Subject: [PATCH] parser: allow reserved ident as interface method names --- src/parser/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index f63066f..f172b30 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -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()?;