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

fix(lexer): "transitive" keyword as Identifier in module requires. #297

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

bd82
Copy link
Contributor

@bd82 bd82 commented Nov 23, 2019

The Special rule states that: a "transitive" keyword followed by a separator
in the context of a module requires would be parsed as an identifier
which is part of the moduleName instead of as a modifier.

This is handled by:

  • Creating Separators token category.
  • Adding a GATE before the "module requires" optional modifiers
    that inspects the next two tokens.

Fixes #112

The Special rule states that: a "transitive" keyword followed by a separator
in the context of a module requires would be parsed as an identifier
which is part of the moduleName instead of as a modifier.

This is handled by:
- Creating Separators token category.
- Adding a GATE before the "module requires" optional modifiers
  that inspects the next two tokens.

Fixes #112
@bd82 bd82 requested a review from clementdessoude November 23, 2019 18:22
@clementdessoude clementdessoude merged commit 2470481 into master Nov 26, 2019
@clementdessoude clementdessoude deleted the transitive_as_ident branch November 26, 2019 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lexer Gaps
2 participants