mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-11-23 21:54:45 +02:00
ignore/types: add *.svelte.ts to Svelte file type glob
I was somewhat unsure about adding this, since `.svelte.ts` seems primarily like a TypeScript file and it could be surprising to show up in a search for Svelte files. In particular, ripgrep doesn't know how to only search the Svelte stuff inside of a `.svelte.ts` file, so you could end up with lots of false positives. However, I was swayed[1] by the argument that the extension does actually include `svelte` in it, so maybe this is fine. Please open an issue if this change ends up being too annoying for most users. Closes #2874, Closes #2909 [1]: https://github.com/BurntSushi/ripgrep/issues/2874#issuecomment-3126892931
This commit is contained in:
committed by
Andrew Gallant
parent
d199058e77
commit
b0c6d4c34a
@@ -267,7 +267,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
|
||||
(&["sql"], &["*.sql", "*.psql"]),
|
||||
(&["stylus"], &["*.styl"]),
|
||||
(&["sv"], &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]),
|
||||
(&["svelte"], &["*.svelte"]),
|
||||
(&["svelte"], &["*.svelte", "*.svelte.ts"]),
|
||||
(&["svg"], &["*.svg"]),
|
||||
(&["swift"], &["*.swift"]),
|
||||
(&["swig"], &["*.def", "*.i"]),
|
||||
|
||||
Reference in New Issue
Block a user