From 273c14a45aa294bcffbce22b9eabb688d97d2dac Mon Sep 17 00:00:00 2001 From: Zack Schuster Date: Fri, 23 Sep 2016 11:44:53 -0700 Subject: [PATCH] Add VB files to default type list Use-case: While not a vogue technology, VB is still a common file type taught in many university settings and used in many commercial settings. Working with VB files out-of-the-box would provide a lot of value to `ripgrep` users. Example: I'm working on converting a legacy app to a modern infrastructure. The legacy app mixes CS and VB files liberally, so I always need to check both. For portability, it would be nice to just be able to ask for `-tcs -tvb` without registering with `--type-add` first. Tests: I didn't notice any coverage aimed at this part of the code, but if I'm mistaken I'll amend the PR. --- src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.rs b/src/types.rs index 910f8132..3fe015e2 100644 --- a/src/types.rs +++ b/src/types.rs @@ -70,6 +70,7 @@ const TYPE_EXTENSIONS: &'static [(&'static str, &'static [&'static str])] = &[ ("txt", &["*.txt"]), ("toml", &["*.toml", "Cargo.lock"]), ("vala", &["*.vala"]), + ("vb", &["*.vb"]), ("vimscript", &["*.vim"]), ("xml", &["*.xml"]), ("yacc", &["*.y"]),