GrammarSoft / cg3

Tools for the 3rd edition of the Constraint Grammar formalism.
https://visl.sdu.dk/cg3.html
GNU General Public License v3.0
19 stars 7 forks source link

Github syntax highlighting (TextMate and/or tree-sitter) #48

Open unhammer opened 5 years ago

unhammer commented 5 years ago

It'd be nice to have syntax highlighting of CG-3 files in Github. They use linguist which reads TextMate-compatible syntax highlighting grammars:

so step 1 would be to get syntax highlighting of CG-3 files working in TextMate.

There's an interactive grammar tester at https://github-lightshow.herokuapp.com

https://github.com/Agrabski/antlr_to_sublime_convert seems like it can convert antlr's to textmate

unhammer commented 2 years ago

I think VSCode also uses TextMate, so that's another reason it'd be nice to have.

Can the tree-sitter grammar https://github.com/apertium/tree-sitter-apertium/tree/master/tree-sitter-cg be converted? (Preferably even as a build-step?)

TinoDidriksen commented 1 year ago

Alternatively, get the tree-sitter version accepted. GitHub uses tree-sitter for some languages and code navigation now, and it is possible to get languages added, just not via any public means.

Various links for future use: