github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.29k stars 4.25k forks source link

New Language: Jai #6631

Open marvhus opened 11 months ago

marvhus commented 11 months ago

Language name

Jai

URL of example repository

https://github.com/search?q=path%3A*.jai&type=code 5.2k files

Projects using the language:
https://github.com/focus-editor/focus https://github.com/SogoCZE/Jails

Wiki showing how the language works. Might be useful:
https://github.com/Jai-Community/Jai-Community-Library/wiki

URL of syntax highlighting grammar

https://github.com/krig/jai-mode (emacs highlighting) https://github.com/rluba/jai.vim (vim highlighting) https://github.com/onelivesleft/the-language (VS Code highlighting)

Most popular extensions

Detected language

none

johnmays commented 11 months ago

Working on this right now.

johnmays commented 11 months ago

Right now it's not looking so good, chiefly because of an issue with the grammar.

The only syntax file format accepted by the repository is .json, which eliminates two that you provided, leaving us with only the VS Code extension syntax. But this might be fine, since there seem to be a group of small, fixable errors with that syntax (like trailing commas accepted by some json parsers, just not the grammar parser accepted by linguist). I am trying to see if I can get a working version right now, in this fork.

So, a few things could happen from this point:

  1. I don't get the grammar to pass the checks and either:
    • another jai grammar needs to be found (but, on a cursory glance, I don't see any other acceptable ones on the internet)
    • someone more skilled than I should try to modify the one in the VS Code repo
  2. I do get the grammar to pass the checks in the repo. In this case, we would need the VS code extension's maintainer(s) to either
johnmays commented 11 months ago

Okay, small update. I have a working syntax arrangement for the grammars now, but I just need adequate permission to use it (or a license for the syntax) from the VS Code extension repo's maintainer.

funkkiy commented 2 months ago

@johnmays, looks like Jails has a syntax highlighting file marked as MIT in https://github.com/SogoCZE/Jails/tree/parser/vscode_extension/syntaxes. then, it could be used, but that still leaves the sample code to be written, or used from another adequately licensed project.

johnmays commented 2 months ago

@funkkiy I can certainly give it a try when I have some free time. I'll keep you posted.

dbechrd commented 1 month ago

I'm also interested in this. The syntax of Jai is not yet final, and it's still in private beta, so it's not super important to have support immediately, but it would be cool to support it since there are more and more public repos popping up with .jai files in them.

SogoCZE commented 1 month ago

The LICENSE has been now added to the original syntax repo: https://github.com/onelivesleft/the-language/commit/11160a470c67e083d7a83f5ee85070e49063640e.