crate-ci / typos

Source code spell checker
Apache License 2.0
2.35k stars 92 forks source link

"sv" file extensions override C header files #950

Open szepeviktor opened 3 months ago

szepeviktor commented 3 months ago
$ 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

szepeviktor commented 3 months ago

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

jayvdb commented 3 months ago

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