Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.reds extension overlap in Red / Redscript languages. #1038

Open
loziniak opened this issue Nov 17, 2023 · 2 comments
Open

.reds extension overlap in Red / Redscript languages. #1038

loziniak opened this issue Nov 17, 2023 · 2 comments

Comments

@loziniak
Copy link

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 .

@XAMPPRocky
Copy link
Owner

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.

@loziniak
Copy link
Author

loziniak commented Nov 19, 2023

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants