julelang / jule

Effective programming language to build efficient, fast, reliable and safe software while maintaining simplicity
https://jule.dev
BSD 3-Clause "New" or "Revised" License
138 stars 13 forks source link

[PROPOSAL] Add Jule to Github Linguist #117

Open therabug opened 4 days ago

therabug commented 4 days ago

Detailed description

Right now, GitHub doesn’t recognize Jule files, which means there’s no syntax highlighting for Jule code.

Adding Jule to GitHub Linguist will allow GitHub to properly highlight Jule code, making it easier to read and work with. This will help developers see the code clearly and improve collaboration. It will also make Jule more visible, helping it gain popularity and attract more contributors.

Context

Currently, Jule isn’t supported for syntax highlighting on GitHub, which makes it harder to read and work with Jule code in repositories. It will help Jule gain more visibility, encouraging more people to try it out and contribute, which could help grow the Jule community.

Possible implementation

We can:

  1. Add the .jule file extension to the languages.yml file in the Linguist repository.
  2. Set up syntax highlighting rules for Jule to match its basic syntax, similar to how other languages are handled.
  3. Test the changes using some Jule code samples to ensure the highlighting works properly.
  4. Submit a pull request to the Linguist repository so the changes can be reviewed and merged.

This process should help GitHub recognize and highlight Jule code correctly.

Additional information

No response

mertcandav commented 3 days ago

This is not a proposal that the Jule team will directly accept or reject, because it about an independent repository, but there is no harm in adding it. Therefore I mark it as "Accepted".

It is not currently possible or not a priority for official Jule developers to do it. Linguist has a development environment and ​technologies​ I'm not familiar with, so community support is needed for the necessary PR. I'll do my best to support.

Some guesses for any community member looking to implement this;

therabug commented 3 days ago

This is not a proposal that the Jule team will directly accept or reject, because it about an independent repository, but there is no harm in adding it. Therefore I mark it as "Accepted".

It is not currently possible or not a priority for official Jule developers to do it. Linguist has a development environment and ​technologies​ I'm not familiar with, so community support is needed for the necessary PR. I'll do my best to support.

Some guesses for any community member looking to implement this;

  • When adding support for Jule, it might be helpful to look at what Jule-like languages ​​do. For example, Go and Rust ​​are good candidates.
  • For keywords and similar things, Jule's vscode extension may help; especially this file

Exactly, I opened it here just to keep it as an idea.