I was grepping in the directory of an extracted CPAN distribution
for module dependencies and noticed that META.yml had a hit while META.json didn't show up.
I almost made json it's own type, then thought maybe it should just be in with the 'js'...
Any thoughts on the matter?
Or perhaps have you specifically left json out for a reason?
Add 'json' to the list of extensions for 'js'
My first thought is that json would be its own. Five examples:
(there's a Monty Python joke in here somewhere)
Make json it's own type instead of a js file
as discussed in gh 174
json is often used in different cases than js.
Update the generated files to include json type
yeah I thought of those too...
guess I should have trusted my first instinct.
I see now that ack and ack-help-types.txt have been modified (didn't notice it last time... maybe I didn't "make" it right).
+1, either as its own type, or as part of js
Note that in the meantime you can put
in your ~/.ackrc to include .json files in searches
to avoid the warning about making a new type
@rwstauner To define a new type, use --type-set instead of --type-add:
This made it into ack2, so closing!