Add Langium Language by montymxb · Pull Request #7649 · github-linguist/linguist · GitHub
Skip to content

Add Langium Language#7649

Merged
lildude merged 3 commits into
github-linguist:mainfrom
montymxb:add-langium
Dec 12, 2025
Merged

Add Langium Language#7649
lildude merged 3 commits into
github-linguist:mainfrom
montymxb:add-langium

Conversation

@montymxb

@montymxb montymxb commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

This PR adds language support for the Langium grammar language.

Description

Langium is both the name of the grammar language and the associated language engineering framework (akin in some ways to Xtext, if that rings a bell). Langium grammar files are written and used to generate an associated parser configuration as well as types for the abstract syntax, cross-ref information, and other helpful details.

Altogether it's typically used to generate language implementations with LSP support. Common use cases are building vscode extensions for supporting domain specific languages, syntax highlighting & generation tools.

  • I am adding a new language.

    • The extension of the new language is used in hundreds of repositories on GitHub.com.
      • Search results for each extension:
    • I have included a real-world usage sample for all extensions added in this PR:
    • I have included a syntax highlighting grammar: [TODO Add highlighting grammar]
    • I have added a color

    - [ ] I have updated the heuristics to distinguish my language from others using the same extension.

The C4 examples is a little long, verging on 1k loc. Let me know if it would be preferable to switch out for something more compact.

@montymxb montymxb requested a review from a team as a code owner October 27, 2025 10:08

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C4 examples is a little long, verging on 1k loc. Let me know if it would be preferable to switch out for something more compact.

Yes please. If the sample is suppressed in the diff, it's too big.

You're also not finished with this PR… you've missed step 4 😉

@montymxb

Copy link
Copy Markdown
Contributor Author

@montymxb montymxb marked this pull request as draft October 27, 2025 11:12
@montymxb montymxb marked this pull request as ready for review October 27, 2025 12:24
@montymxb

Copy link
Copy Markdown
Contributor Author

@montymxb montymxb requested a review from lildude October 27, 2025 12:26

@lildude lildude left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Important

The changes in this PR will not appear on GitHub until the next release has been made and deployed. See here for more details.

@lildude lildude added this pull request to the merge queue Dec 12, 2025
Merged via the queue into github-linguist:main with commit 84902b0 Dec 12, 2025
5 checks passed
@montymxb montymxb deleted the add-langium branch December 15, 2025 16:28
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants