giellalt / giella-core

Build tools and build support files as well as developer support tools for the GiellaLT repositories.
https://giellalt.uit.no
GNU General Public License v3.0
7 stars 2 forks source link

Add support for lexc in GH Linguist #16

Open snomos opened 2 years ago

snomos commented 2 years ago

Cf https://github.com/github/linguist/blob/master/CONTRIBUTING.md

There is already one for VSCode here: https://github.com/eddieantonio/vscode-lexc

There are more than 200 repos with lexc files, according to this search:

https://github.com/search?p=1&q=extension%3Alexc+NOT+nothack&type=Code (4930 hits).

Benefits:

WDYT @flammie @albbas @Trondtr @ftyers

flammie commented 2 years ago

sounds like a good idea, I know apertium folks have doen some work with github linguist but I got the impression the syntax for the thing was not very nice to work with so I haven't researched further. Is this vscode grammar the same as the textmate they are expectig?

snomos commented 2 years ago

I donโ€™t know, but it should in any case be a good start.

mr-martian commented 2 years ago

My understanding is that textmate grammars are in the process of being replaced by tree-sitter grammars, though there isn't yet an established way to submit one of the latter, though such a grammar now exists: https://github.com/apertium/tree-sitter-apertium, which might be a reason to wait a bit and see if they provide a way to submit that.