From 6948cc88ef3d2de343eb5bb1e4e3a51a3c327952 Mon Sep 17 00:00:00 2001 From: Ethan Kinnear Date: Tue, 7 Jun 2022 18:07:59 -0500 Subject: [PATCH] Register `Brewfile`s as Ruby files (#2432) A `Brewfile` (sometimes named `.Brewfile`) is a bundler for Homebrew packages. Brewfiles are written in Ruby and are functionally similar to Gemfiles. `homebrew-bundle` on GitHub: . `brew bundle` Manpage: . --- runtime/syntax/ruby.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/ruby.yaml b/runtime/syntax/ruby.yaml index 9247b691..c55feb4b 100644 --- a/runtime/syntax/ruby.yaml +++ b/runtime/syntax/ruby.yaml @@ -1,7 +1,7 @@ filetype: ruby detect: - filename: "\\.(rb|rake|gemspec)$|^(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile)$" + filename: "\\.(rb|rake|gemspec)$|^(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$" header: "^#!.*/(env +)?ruby( |$)" rules: -- 2.44.0