typos
typos copied to clipboard
"sv" file extensions override C header files
$ typos --file-types
./src/crc64.h: sv
https://github.com/crate-ci/typos/blob/6233184298a40671ccdd63744fce6209c38df06d/crates/typos-cli/src/default_types.rs#L244
How to recognize .h files as C files?
Cc @jayvdb
Actually this is not the only override/collision. It would be nice to discover all of them.
e.g. sv's .svh vs. verilog's .svh
It would be great if typos used the same definitions as https://github.com/github-linguist/linguist . There are some ports https://crates.io/search?q=linguist
Closing as this is a duplicate of #913.