mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-04 21:52:54 +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
afc820c9e9
commit
2d763a9a1b
@ -267,7 +267,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
|
|||||||
(&["sql"], &["*.sql", "*.psql"]),
|
(&["sql"], &["*.sql", "*.psql"]),
|
||||||
(&["stylus"], &["*.styl"]),
|
(&["stylus"], &["*.styl"]),
|
||||||
(&["sv"], &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]),
|
(&["sv"], &["*.v", "*.vg", "*.sv", "*.svh", "*.h"]),
|
||||||
(&["svelte"], &["*.svelte"]),
|
(&["svelte"], &["*.svelte", "*.svelte.ts"]),
|
||||||
(&["svg"], &["*.svg"]),
|
(&["svg"], &["*.svg"]),
|
||||||
(&["swift"], &["*.swift"]),
|
(&["swift"], &["*.swift"]),
|
||||||
(&["swig"], &["*.def", "*.i"]),
|
(&["swig"], &["*.def", "*.i"]),
|
||||||
|
Reference in New Issue
Block a user