Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Conversation

azjezz
Copy link
Collaborator

@azjezz azjezz commented Dec 10, 2022

this fixes bunch of cases regarding the usage of reserved keywords as identifiers and label names, also adds a good error message for when a reserved keyword is used for a label.

Comment on lines +119 to +122
if state.peek.kind != TokenKind::LeftParen
&& state.peek.kind != TokenKind::DoubleColon
&& state.peek.kind != TokenKind::Colon =>
{
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guard for enum(), enum::class, and enum: ( label )

Signed-off-by: azjezz <azjezz@protonmail.com>
@azjezz azjezz merged commit 8842ec0 into main Dec 10, 2022
@azjezz azjezz deleted the rsrvd branch December 10, 2022 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant