Replies: 1 comment
-
|
Hey @ydaveluy, Langium replaced the per-grammar/rule hidden terminals with a global hidden flag on the terminal itself: Due to limitations in our parsing library (Chevrotain), it's not possible to do the same as Xtext/Antlr did. You could however implement this via lexer modes in Chevrotain by overriding the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to disable the
WSterminal rule in a custom rule to prevent whitespaces between elements.In Xtext it was possible to use the following syntax which is accepted by langium but does not seems to work:
Here is an example of what I would like to achieve (2 differents paths instead of only one on 2 lines) :
https://langium.org/playground?grammar=OYJwhgthYgBAEgUwDbIPYHU0mQEwFD6IB2ALiAJ6wAKYpAFgM4Bc%2Bs7sADnUwNQC8tBgCoA3ISH1Y9AJa5cJWAAoAsgBkA%2BgGEA8ipUBRAHIAVADSwAypt37jJgJSsOygOQB6V7EaJgEEqQCAJIAIg684oSy8oqkiCAQMsRgyLAYlsyw7gA6jLzu4nEJSSmwoZnuANoaYAC0AF4AgrUAWgC6ldkA7hptwgVRcgrEsEWJyanq2nqGphXZOcKdjNmWfQD82cILA9HDo-HjpdbTdnNZCwuVAHrZxNkgfQNAA&content=AQeghiAOYC4BYFgBQowDsQHt4FMBOUscQA
Any idea ?
Beta Was this translation helpful? Give feedback.
All reactions