New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mercury noconflict #1049
Mercury noconflict #1049
Conversation
lib/linguist/languages.yml: Add the declaration for the language. samples/Mercury: Add samples for the classifier as Mercury shares it's filename extension with several other languages.
Detect Inno Setup installer scripts (http://www.jrsoftware.org/isinfo.php)
extend the vendor/ exclusion to handle vendors/ Some projects use this folder to store external libaries (eg https://github.com/Elgg/Elgg)
lib/linguist/languages.yml: Add the declaration for the language. samples/Mercury: Add samples for the classifier as Mercury shares it's filename extension with several other languages.
@arfon Thanks for merging this, while this does add Mercury to linguists' Thanks. |
@PaulBone I believe they are working on a fix for the problem with the primary extension (it will probably be removed). It takes time to do real tests on a system as large as GitHub. In the meantime, the .mercury file extension is better than nothing :) |
@pchaigno You believe? What is your source? Faith? There is absolutely nothing more to test to verify that my patch works. |
There's actually nothing in the Gist workflow that 'makes' people pick |
@arfon He was probably confused about the language picker being gray when a filename is entered. |
@nox - good point - I agree that's a little weird. |
@PaulBone check out those language stats: https://github.com/PaulBone/pbone_thesis |
@arfon, sorry I did misunderstand. I was under the impression that you I created this gist without specifying a It gets given the filename gistfile1.mercury, which is incorrect but that's Thanks again, and YAY for language statistics. |
Hi @PaulBone - yes if you omit a filename completely then this is the behaviour unfortunately. I wonder how many people do this? With the recent update to Gist though if someone specifies |
Yep, this is good. I've noticed that the Mercury detection isn't perfect. Some Mercury things |
I'm going to be discussing some of the heuristics stuff with @bkeepers and others tomorrow so if there are any tell-tale signatures for Mercury that you don't think exist in other language syntaxes (such as M) then add them in here if you like 😄 |
As I'm more interested in telltale syntaxes that distinguish M from other languages, can anyone tell me if limited sequences like single letters both preceded and followed by a space are distinguished from multiple letters by the Bayesian Matcher? This pattern is very common in M code, and I expect rare in other programming langauges. If not, I guess I need to put that in a heuristic code. |
lib/linguist/languages.yml:
Add the declaration for the Mercury language.
samples/Mercury:
Add samples for the classifier as Mercury shares it's filename extension
with several other languages.