coconut icon indicating copy to clipboard operation
coconut copied to clipboard

Make GitHub properly detect and highlight Coconut source

Open evhub opened this issue 8 years ago • 4 comments

See https://github.com/github/linguist.

evhub avatar Oct 09 '17 19:10 evhub

In progress at https://github.com/github/linguist/pull/3872.

evhub avatar Oct 20 '17 20:10 evhub

I was reading over the guidelines for accepting a language into linguist and it appears that there must be 'hundreds' of unique repositories in the wild.

If you look for Coconut usage in the wild, I don't think it is currently sufficient. There are dozens of unique repositories, but not yet hundreds.

In the meantime, would it be worthwhile to come up with a grammar for Coconut that isn't GPL'ed? The linguist repo doesn't accept grammars which are, but I saw that the linked grammar in the PR you opened @evhub is GPL'ed.

eindiran avatar Feb 02 '18 21:02 eindiran

@eindiran Yeah, developing a non-GPL grammar would definitely be a good idea. A possible starting point would be to adapt MagicPython.

evhub avatar Feb 02 '18 21:02 evhub

As a fallback, you can use the .gitattributes override feature in individual repos: https://github.com/github/linguist#using-gitattributes e.g. *.coco linguist-language=python (note: the highlighting may not show up until the next commit after you added the .gitattributes file.

Darkle avatar Mar 04 '18 03:03 Darkle