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

Whitespace field not generated in elementTypeHolderClass #267

Open
amynbe opened this issue May 8, 2021 · 0 comments
Open

Whitespace field not generated in elementTypeHolderClass #267

amynbe opened this issue May 8, 2021 · 0 comments

Comments

@amynbe
Copy link

amynbe commented May 8, 2021

https://github.com/JetBrains/Grammar-Kit/blob/master/TUTORIAL.md says:

the LivePreviewLexer treats as whitespace any space or new-line matching regexp token that is not used anywhere in the rules.

However, as soon as I remove all mentions of a given rule in the bnf, the IElementType disappears from the elementTypeHolderClass (XxxTypes.java) and I can't reference it in my ParserDefinition.getWhitespaceTokens.

This means I can't have an accurate LivePreviewLexer and code that compiles at the same time, is this known/expected behaviour?

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

No branches or pull requests

1 participant