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

Add language: Cosmo #6429

Open
R-unic opened this issue May 24, 2023 · 3 comments
Open

Add language: Cosmo #6429

R-unic opened this issue May 24, 2023 · 3 comments
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist

Comments

@R-unic
Copy link

R-unic commented May 24, 2023

Language name

Cosmo

URL of example repository

https://github.com/cosmo-lang/cosmo/tree/master/examples

URL of syntax highlighting grammar

https://github.com/cosmo-lang/vscode-cosmo/blob/main/syntaxes/cosmo.tmLanguage.json

Most popular extensions

.cos, .⭐

Detected language

None

@R-unic R-unic added Add Language Good First Issue This is a great opportunity to start contributing to Linguist labels May 24, 2023
@Nixinova
Copy link
Contributor

Nixinova commented Aug 20, 2023

Dot-star file extension is a bit of a weird one and doesn't seem to be used outside of the cosmo-lang examples folder (search link). .cos seems to have a lot of junk (search link) - what would be a way to narrow down which of those are actually Cosmo? Any certain keywords that uniquely identify it?

@R-unic
Copy link
Author

R-unic commented Aug 22, 2023

yeah i noticed that shortly after posting this. so the only keywords i could imagine would be unique to cosmo in a .cos file might be fn, from, until, unless, is, in, or mut. you could also use the function name puts. i'm aware all of those keywords are present in other languages, so the only keywords universally unique to cosmo are every and $.

i very much appreciate your time in considering to add cosmo! thank you for all you do <3

@johnmays
Copy link
Contributor

I bet true .cos files are getting close to 2000. Here is a search for path:*.cos fn with ~1.4k. And when you use other keywords like stream, you can tell there are .cos files floating around without the fn keyword. As for .⭐ there are only 15 files at the moment. And according to #5756, each extension needs at least 2000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Add Language Good First Issue This is a great opportunity to start contributing to Linguist
Projects
None yet
Development

No branches or pull requests

3 participants