mirror of
https://github.com/encounter/sjiswrap.git
synced 2025-09-18 16:49:37 +00:00
Add support for .pch and other file extensions (#3)
This commit is contained in:
parent
72fb95a997
commit
1e7bdbe447
@ -13,11 +13,15 @@ Encoded file extensions:
|
||||
- `.cp`
|
||||
- `.cpp`
|
||||
- `.cxx`
|
||||
- `.c++`
|
||||
- `.h`
|
||||
- `.hh`
|
||||
- `.hp`
|
||||
- `.hpp`
|
||||
- `.hxx`
|
||||
- `.h++`
|
||||
- `.pch`
|
||||
- `.pch++`
|
||||
- `.inc`
|
||||
|
||||
## Usage
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user