Add KoLmafia ASH with samples and heuristic
Description
I am currently missing a grammar - the closest thing that exists is here https://raw.githubusercontent.com/danielyxie/vscode-kolmafia-ash/master/syntaxes/ash.yml. How would you recommend I include that?
Checklist:
- [x] I am adding a new language.
- [x] The extension of the new language is used in hundreds of repositories on GitHub.com.
- Search results for each extension:
- https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.ash+%2F%28%5C%24%5Ba-zA-Z%5D%2B%5C%5B%7Cvisit_url%7Csince+r%5Cd%2B%29%2F
- Search results for each extension:
- [x] I have included a real-world usage sample for all extensions added in this PR:
- Sample source(s):
- http://svn.code.sf.net/p/zlib/code/scripts/zlib.ash
- https://github.com/Veracity0/arrrbor-day/blob/main/scripts/Arrrbor%20Day.ash
- Sample license(s):
- None indicated, not typical to do so for this community
- Sample source(s):
- [x] I have included a syntax highlighting grammar
- [x] I have added a color
- Hex value:
#54bd32 - Rationale: Green picked from the lime featured in the KoLmafia icon
- Hex value:
- [x] I have updated the heuristics to distinguish my language from others using the same extension.
- [x] The extension of the new language is used in hundreds of repositories on GitHub.com.
There's already a PR for this - https://github.com/github-linguist/linguist/pull/5401. Maybe you can contribute to that PR or pull in the changes proposed there, keeping in mind all the comments on that PR.
There's already a PR for this - #5401. Maybe you can contribute to that PR or pull in the changes proposed there, keeping in mind all the comments on that PR.
Oh wow well done for remembering this. And sorry @midgleyc for missing your work! I think the search I've done, which is just a regex based on the heuristic I wrote, does a better job of reflecting the popularity.
I'll update this PR to use Chris's grammar.
Ok that is done. I note that @midgleyc's PR seems to have run script/list-grammars but the guide for adding a new language does not include that as a step - would you like me to do so?
This is likely to fail the popularity test again -- I think the number of required repos has only increased since my PR several years ago.
A lot of repositories exist only on Sourceforge, and as GitHub doesn't (seem to?) list repos without recent contributions in the search, finding many of the existing scripts is going to be difficult. Even with them, the language likely isn't popular enough.
This is likely to fail the popularity test again -- I think the number of required repos has only increased since my PR several years ago.
A lot of repositories exist only on Sourceforge, and as GitHub doesn't (seem to?) list repos without recent contributions in the search, finding many of the existing scripts is going to be difficult. Even with them, the language likely isn't popular enough.
The search I have in the description is listing almost 1k files, not sure how to see individual repos but it does seem to be at least a hundred.
It would be really great to differentiate these from AGS Scripts!