Support .snap files

Closes #571
pull/593/head^2
Wilfred Hughes 2023-11-18 14:50:54 +07:00
parent 2e415f687d
commit 635e62c19b
2 changed files with 3 additions and 1 deletions

@ -7,6 +7,8 @@ Added support for SCSS.
Updated the Kotlin parser and improved handling of Kotlin nullable
types.
`.snap` files (Jest snapshots) are now detected as JavaScript files.
### Command Line Interface
Added the option `--strip-cr`. This removes all carriage return

@ -257,7 +257,7 @@ pub fn language_globs(language: Language) -> Vec<glob::Pattern> {
Html => &["*.html", "*.htm", "*.xhtml"],
Janet => &["*.janet", "*.jdn"],
Java => &["*.java"],
JavaScript => &["*.cjs", "*.js", "*.mjs"],
JavaScript => &["*.cjs", "*.js", "*.mjs", "*.snap"],
Json => &[
"*.json",
"*.avsc",