diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 0f68186..19fe77c 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -2359,6 +2359,11 @@ impl Parser { self.next(); Expression::Identifier { name: ident } } + TokenKind::Class => { + self.next(); + // FIXME: Can this be represented in a nicer way? Kind of hacky. + Expression::Identifier { name: "class".into() } + }, _ => { return expected_token_err!(["`{`", "`$`", "an identifier"], self); }