From e8b58ba52b2a9e8a60b7393151de20f88b4e179a Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Mon, 5 Dec 2022 00:23:38 +0000 Subject: [PATCH] parser: produce static expressions as new target --- src/parser/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index f119884..fde73ca 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1042,7 +1042,7 @@ impl Parser { state.next(); e } - TokenKind::Static if matches!(state.peek.kind, TokenKind::DoubleColon) => { + TokenKind::Static => { state.next(); Expression::Static }