cgag / loc

Count lines of code quickly.
MIT License
2.31k stars 126 forks source link

Ability to add new languages #2

Open piranha opened 7 years ago

piranha commented 7 years ago

I have a codebase which is partially Clojure (.clj), partially ClojureScript (.cljs) and partially both of them (.cljc). Right now only .clj files are counted.

Of course, languages could be added right to the binary, but maybe having option to add new file extensions is a good thing too. :)

cgag commented 7 years ago

Great idea. I think I should be able to just have unrecognized files fallback to doing a lookup from mappings passed as arguments, I just need to reverse my to_s implementation so I can parse the command-line args.

coin-au-carre commented 6 years ago

I +1 with this feature enhancement. For instance when using Symfony we would like to count the *.html.twig files which are basically HTML.