Add support for generic option-lists like .ackrc
#6088
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull-request adds support for generic option-lists that use shell syntax for their contents:
Currently, this is limited to
.ackrc
files, but I suspect analogous formats might be added in future. Hence why I've named this languageOption List
instead of merelyackrc
or something.About
.ackrc
files.ackrc
is a configuration file read byack(1)
that has ~5,683 indexed results on GitHub, with a healthy ratio of users and repositories.The dotless variant
ackrc
appears to have adequate distribution, with ~430 search results and an ostensibly healthy user/repo ratio. Code search currently makes it cumbersome to count the exact number of users, so @lildude will want to review the actual usage ofackrc
files on GitHub.Colour rationale
The colour I chose is a muted shade of the Shell language's colour (specifically, its saturation and brightness levels were halved). Since these option-lists are a "shade" of shell syntax, I figured the derivation was appropriate.
#89e051
#476732
Checklist:
extensionfilename of the language is used in hundreds of repositories:Probably. I'll leave the census to @lildude. 😉 For now, a search for files named
.ackrc
tosses up ~5,683 results.ackrc
: Sourced fromlarrylv/dotfiles
, an MIT-licensed repository..ackrc
: Written by yours truly. It adds Linguist-related filetypesack(1)
is missing.I have included a syntax highlighting grammarI have updated the heuristics