From: Ethan Kinnear Date: Tue, 7 Jun 2022 23:07:59 +0000 (-0500) Subject: Register `Brewfile`s as Ruby files (#2432) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6948cc88ef3d2de343eb5bb1e4e3a51a3c327952;p=micro.git 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: . --- 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: