Add Fun language support - #8155
Conversation
Add the Fun scripting language (https://funlang.org) to Linguist. The `.fun` extension was previously exclusive to Standard ML, so a heuristic is added to disambiguate Fun from Standard ML based on Fun's distinctive syntax (line comments starting with '#', `end <keyword>` block terminators, `var <name> =` declarations, and the `?.` print operator). Standard ML remains the default for `.fun` files that do not match those markers. Samples are taken verbatim from the MIT-licensed Funlang/fun repository (copyright Zhang Weidong), including its demo programs and standard library modules.
Vendor the Fun TextMate grammar (hosted at Funlang/funide) as a git submodule and wire it into Linguist so .fun files get syntax highlighting: - vendor/grammars/fun submodule -> Funlang/funide - grammars.yml: vendor/grammars/fun: [source.fun] - languages.yml: Fun tm_scope none -> source.fun - vendor/licenses/git_submodule/fun.dep.yml (MIT)
|
Hello, thank you for reviewing my PR. I see that it has been marked as Regarding the checklist, I’ve already completed the following items:
However, I’d like to clarify a couple of points where I may have fallen short:
Could you please point me to the specific requirements I’m still missing? I’ll update the PR promptly. Thanks again for your time! |
|
As stated in the CONTRIBUTING.md file, PRs will not be reviewed until the PR template is filled in correctly. That means providing the information and links in the right place in the template.
Yes. That part of the template is there for a reason 😉 That's how you prove your extension and language meets our usage requirements.
Yes, that's what we're asking you to do. |
Add the Fun scripting language (https://funlang.org) to Linguist.
The
.funextension was previously exclusive to Standard ML, so a heuristic is added to disambiguate Fun from Standard ML based on Fun's distinctive syntax (line comments starting with '#',end <keyword>block terminators,var <name> =declarations, and the?.print operator). Standard ML remains the default for.funfiles that do not match those markers.Samples are taken verbatim from the MIT-licensed Funlang/fun repository (copyright Zhang Weidong), including its demo programs and standard library modules.
Description
Checklist:
I am adding a new extension to a language.
I am adding a new language.
#f3d325I am fixing a misclassified language
I am changing the source of a syntax highlighting grammar
I am updating a grammar submodule
I am adding new or changing current functionality
I am changing the color associated with a language