grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.53k stars 319 forks source link

Submit the grammar to Github Linguinst for syntax coloring #354

Open jpcima opened 4 years ago

jpcima commented 4 years ago

Hi, it will be nice to offer syntax coloring of Faust sources on GitHub. It's not in the set of available languages at the linguist project: https://github.com/github/linguist

It may be a triviality to add it, considering there seems to exist a compatible grammar inside syntax-highlighting/atom.

There was an unfulfilled request for Faust language back in 2014: https://github.com/github/linguist/issues/1247

sletz commented 4 years ago

"It may be a triviality to add it" feel free to submit something ((-;

jpcima commented 4 years ago

I will gladly, but there is one request to ask for this: can grave-cncm have a copy language-faust into a repository of its own?

It may be a triviality to add it

It "may" be because I haven't tried to confirm :) there is a high chance for it to work immediately, because there exist a number of identically structured grammar packages in the repository.

sletz commented 4 years ago

"can grave-cncm have a copy language-faust into a repository of its own?" what do you mean exactly ?

jpcima commented 4 years ago

I mean: github needs to reference the grammar as a submodule, so the ideal will be a situation where:

here, it's an example of what's expected as grammar repository: https://github.com/Alhadis/language-emacs-lisp

jpcima commented 4 years ago

Faust language was added in Github Linguist, and available now. https://github.com/github/linguist/releases/tag/v7.8.0

The limitation is it handles the .dsp extension only. It will need more work for .lib, because it needs to implement disambiguation for every kind of .lib file that exist, and implement a language recognition for every one of these.

sletz commented 4 years ago

Very nice ! even if not yet complete.

orlarey commented 4 years ago

Very useful, thank you !

Le jeu. 30 janv. 2020 à 13:15, JP Cimalando notifications@github.com a écrit :

Faust language was added in Github Linguist, and available now. https://github.com/github/linguist/releases/tag/v7.8.0

The limitation is it handles the .dsp extension only. It will need more work for .lib, because it needs to implement disambiguation for every kind of .lib file that exist, and implement a language recognition for every one of these.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grame-cncm/faust/issues/354?email_source=notifications&email_token=AA2FWUNCIKQIAWTDT3ADBMDRALAGPA5CNFSM4JF2QF22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKKYVFI#issuecomment-580225685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2FWULRK3Y3SAM3ZVOYCSLRALAGPANCNFSM4JF2QF2Q .