Skip to content
Discussion options

You must be logged in to vote

Hey @arthur-fontaine, thanks for your question!

I've updated your playground to work as expected, see here. The TEXT terminal messes with a lot of stuff in Langium, due to it being effectively being a catch-all terminal. We perform a few heuristics to optimize lexing/parsing performance, including reordering of token types. In this case it gets moved in front of all other tokens due to it's ability to match a whitespace character, which prevents everything else from being lexed. So in a real langium project you might need to fine-tune the token generation.

There was also another issue related to ambiguous grammar rules, but that is easily fixed.

Anyway, HTML should be fairly straightforwa…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@arthur-fontaine
Comment options

@trusktr
Comment options

@trusktr
Comment options

@trusktr
Comment options

@msujew
Comment options

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