-
-
Notifications
You must be signed in to change notification settings - Fork 554
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
Verilog source files are misidentified as Coq sources #520
Comments
The issue with just changing Scc handles this conflict by more intelligently guessing the filetype by looking for keywords in the first Downsides
If @XAMPPRocky decides this is worth doing then I'll be happy to implement a similar solution to |
@NickHackman Thank you for your interest. At this point I don't want to add heuristics that are based on the source code for the downsides you mentioned, as well as I don't think that added complexity would add much. If you're interested in a solution, I had a design to resolve this that allows users to override the extensions as part of columns = 80
treat_doc_strings_as_comments = true
[languages.Verilog]
extensions = ["v"] |
@XAMPPRocky sadly that doesn't work for directories that contain both In the future it would be nice if Tokei gained some of the features that |
@NickHackman It's true that it doesn't cover that case, but I would consider that quite pathological, a project that is using the same file extension for two different languages in the same source directory is not something I've ever seen, and I would need some pretty heavy convincing that it would actually be useful to someone. This concern could also be partially if not fully addressed by allowing |
Also watch out for introducing this bug linguist got with this particular language pair: github-linguist/linguist#5041 Verilog has synthesis attributes in |
languages.json lists *.vg as a Verilog source file extension, while everyone has been using *.v for Verilog sources for decades.
I have never seen a *.vg Verilog source file in my life.
The text was updated successfully, but these errors were encountered: