Add support for .pch and other file extensions (#3)

This commit is contained in:
LagoLunatic 2025-08-23 17:46:10 -04:00 committed by GitHub
parent 72fb95a997
commit 1e7bdbe447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -13,11 +13,15 @@ Encoded file extensions:
- `.cp`
- `.cpp`
- `.cxx`
- `.c++`
- `.h`
- `.hh`
- `.hp`
- `.hpp`
- `.hxx`
- `.h++`
- `.pch`
- `.pch++`
- `.inc`
## Usage

View File

@ -54,11 +54,15 @@ fn is_text_file(path: &Path) -> bool {
|| ext == OsStr::new("cp")
|| ext == OsStr::new("cpp")
|| ext == OsStr::new("cxx")
|| ext == OsStr::new("c++")
|| ext == OsStr::new("h")
|| ext == OsStr::new("hh")
|| ext == OsStr::new("hp")
|| ext == OsStr::new("hpp")
|| ext == OsStr::new("hxx")
|| ext == OsStr::new("h++")
|| ext == OsStr::new("pch")
|| ext == OsStr::new("pch++")
|| ext == OsStr::new("inc")
}