Skip to content

Token scoping? #208

Answered by msujew
larsbaunwall asked this question in Q&A
Sep 9, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @larsbaunwall, glad to hear you're interested in working with Langium :)

Looks like you encountered one of the many bugs of version 0.1.0. This should definitely work, but when we wrote the initial parser generator we didn't think about that use case (same keyword wird different capitalization). For now, you should probably just change both of the role keywords to use the same capitalization.

With #169 we completely changed how the parser works (it is now completely in memory). For this, we also changed how token generation works and this use case won't be a problem anymore. So you didn't do anything wrong; This is definitely a bug in Langium. We are close to releasing a 0.2, which wil…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@larsbaunwall
Comment options

Answer selected by larsbaunwall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants