]> git.lizzy.rs Git - micro.git/commitdiff
Register `Brewfile`s as Ruby files (#2432)
authorEthan Kinnear <ethanjameskinnear@gmail.com>
Tue, 7 Jun 2022 23:07:59 +0000 (18:07 -0500)
committerGitHub <noreply@github.com>
Tue, 7 Jun 2022 23:07:59 +0000 (00:07 +0100)
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: <https://github.com/Homebrew/homebrew-bundle>.
`brew bundle` Manpage: <https://docs.brew.sh/Manpage#bundle-subcommand>.

runtime/syntax/ruby.yaml

index 9247b69196074b9d0be4fe3bd80905e681204685..c55feb4b6999c1e75faae139abe1cbdbdd3d2f8c 100644 (file)
@@ -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: