Skip to content
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

Community package request: language-meson #1233

Open
1 task done
Tamaranch opened this issue Feb 26, 2025 · 2 comments
Open
1 task done

Community package request: language-meson #1233

Tamaranch opened this issue Feb 26, 2025 · 2 comments
Labels
enhancement New feature or request package-idea Might be good candidate for new package.

Comments

@Tamaranch
Copy link

Tamaranch commented Feb 26, 2025

Have you checked for existing feature requests?

  • Completed

Summary

Meson is a widely used build system whose code is similar to a "classic" programming language (more so than autotools and the m4 macro language...), so highlighting it shouldn't pose too many difficulties? It would be nice to have this builtin in pulsar, especially as there's no external package for it as far as I know.

What benefits does this feature provide?

Have meson code highlighting as a builtin feature in pulsar.

Any alternatives?

It could be a community package I suppose, but I don't know who's going to do it.

Other examples:

No response

@Tamaranch Tamaranch added the enhancement New feature or request label Feb 26, 2025
@savetheclocktower
Copy link
Contributor

There's a tree-sitter-meson parser in the tree-sitter-grammars repo, so this is quite doable.

I understand that you're not exactly volunteering to create this community package, but it's likely a bit easier than you think it is. This documentation walks you through the process of creating a modern Tree-sitter grammar — building a .wasm file, writing highlighting queries, and so on. You'd be free to ping me on Discord if you needed tech support; I'm eager to grow the list of people comfortable with creating new language grammars.

If you'd rather wait for more explicit guidance, I could start the grammar myself and bequeath it to pulsar-cooperative; it would take me about an hour, but I can't predict when I'd be able to spend the time on it.

@savetheclocktower savetheclocktower changed the title Highlighting support for meson Community package request: language-meson Feb 26, 2025
@savetheclocktower savetheclocktower added the package-idea Might be good candidate for new package. label Feb 26, 2025
@Tamaranch
Copy link
Author

I don't think I'll have the time to devote to it any time soon, honestly. I just thought about it when I reported the highlighting bug in C, because I've been writing a lot of meson code lately, mostly in pulsar without highlighting by the way, so I didn't miss it that much 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package-idea Might be good candidate for new package.
Projects
None yet
Development

No branches or pull requests

2 participants