Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java20] Fix for identifiers #4209 #4229

Merged
merged 2 commits into from
Sep 7, 2024
Merged

[java20] Fix for identifiers #4209 #4229

merged 2 commits into from
Sep 7, 2024

Conversation

kaby76
Copy link
Contributor

@kaby76 kaby76 commented Sep 3, 2024

This PR corrects occurrences of Identifier, which was done incorrectly. As stated in the Spec, Identifier is a "IdentifierChars but not a ReservedKeyword or BooleanLiteral or NullLiteral". But it should include generally ContexualKeyword. Antlr does not have a "not"-operator for parser grammars, so the rule must be refactored as what can be included. A Keyword is a "ReservedKeyword | ContextualKeyword." This PR defines contextualKeyword and subsets, which are used in a couple of places.

@kaby76 kaby76 marked this pull request as ready for review September 4, 2024 10:55
@teverett teverett added the java label Sep 7, 2024
@teverett teverett merged commit 2977989 into antlr:master Sep 7, 2024
30 checks passed
@teverett
Copy link
Member

teverett commented Sep 7, 2024

@kaby76 thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants