-
Notifications
You must be signed in to change notification settings - Fork 68
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
Adds Monarch Grammar File Generation #620
Conversation
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
Thanks for the feedback @msujew . Next commit of changes should be up sometime later tomorrow. |
New changes are up 👍 |
packages/langium-cli/src/generator/highlighting/textmate-generator.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks quite good. Just a few minor things, see below.
packages/langium-cli/src/generator/highlighting/monarch-generator.ts
Outdated
Show resolved
Hide resolved
Last review points added in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Closes #582 by adding an option to generate a Monarch grammar file. This supplements our existing generation for TextMate grammar files, so we can generate one, both, or neither of them as we choose.
As an example I've updated the statemachine example's
langium-config
to construct a Monarch grammar, and I've added the resulting file.Currently I've been comparing the results by using Microsoft's Monarch Editor (playground), and it looks good.
The shows is marked as having quite a few errors in VSCode but the format should be ok when used in a Monaco instance. I haven't tried setting this up directly, but that would be the next step.