From 9ea7369b057f32e60a446ed1a8edf67cadcaf6a4 Mon Sep 17 00:00:00 2001 From: Tom Paoletti Date: Sat, 3 Oct 2020 21:33:38 -0700 Subject: [PATCH] fmt: allow formatting of v shell files (.vsh) (#6555) --- cmd/tools/vfmt.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vfmt.v b/cmd/tools/vfmt.v index 0a36e73b6a..7a50a7fd78 100644 --- a/cmd/tools/vfmt.v +++ b/cmd/tools/vfmt.v @@ -37,7 +37,7 @@ const ( ['openbsd', '_bsd.v', '_openbsd.v'], ['solaris', '_solaris.v'], ['haiku', '_haiku.v'], - ['qnx', '_qnx.v'] + ['qnx', '_qnx.v'], ] ) @@ -83,7 +83,7 @@ fn main() { } mut files := []string{} for file in possible_files { - if !file.ends_with('.v') && !file.ends_with('.vv') { + if !file.ends_with('.v') && !file.ends_with('.vv') && !file.ends_with('.vsh') { verror('v fmt can only be used on .v files.\nOffending file: "$file"') continue }