typos icon indicating copy to clipboard operation
typos copied to clipboard

"sv" file extensions override C header files

Open szepeviktor opened this issue 1 year ago • 2 comments

$ 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 avatar Mar 29 '24 05:03 szepeviktor

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

szepeviktor avatar Mar 29 '24 05:03 szepeviktor

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

jayvdb avatar Mar 29 '24 06:03 jayvdb

Closing as this is a duplicate of #913.

epage avatar Feb 19 '25 16:02 epage