From 5895b2908e9285f0a734921a380de2d86884e8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Aase?= Date: Tue, 5 Nov 2019 18:52:28 +0100 Subject: [PATCH] Added filetype for powershell files --- filetypes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filetypes.go b/filetypes.go index 7ec620c6..4442c623 100644 --- a/filetypes.go +++ b/filetypes.go @@ -50,6 +50,9 @@ func init() { Patterns: []string{"*.php", "*.phpt", "*.php3", "*.php4", "*.php5", "*.phtml"}, ShebangRegex: regexp.MustCompile(`^#!.*\bphp\b`), }, + "pwsh": FileType{ + Patterns: []string{"*.ps1", "*.psm1"}, + }, "ruby": FileType{ Patterns: []string{"*.rb", "*.rhtml", "*.rjs", "*.rxml", "*.erb", "*.rake", "*.spec", "Rakefile"}, ShebangRegex: regexp.MustCompile(`^#!.*\bruby\b`),