tokei icon indicating copy to clipboard operation
tokei copied to clipboard

`.reds` extension overlap in Red / Redscript languages.

Open loziniak opened this issue 1 year ago • 2 comments

It is temporarily disabled for Red: 08cc748

Red support: #958 Redscript support: #994

Perhaps such overlap should be allowed, and an option added to select which language to use in case of extension overlap? It would also fix this issue: https://github.com/XAMPPRocky/tokei#tokei-says-i-have-a-lot-of-d-code-but-i-know-there-is-no-d-code .

loziniak avatar Nov 17 '23 23:11 loziniak

Thank you for your issue! Yes overlap is a thing I've been meaning to support but I don't have much time for this project these days.

It requires implementing some kind of detection algorithm based on file contents.

XAMPPRocky avatar Nov 18 '23 07:11 XAMPPRocky

Did you consider something like a simple option to allow user say "I prefer D parser over C parser and Redscript parser over Red parser, in case of extension overlap"? Like tokei ./foo --prefer "D" --prefer "Redscript"?

loziniak avatar Nov 19 '23 00:11 loziniak