summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rwxr-xr-xbuild1
-rw-r--r--ftdetect/polyglot.vim11
-rw-r--r--syntax/brewfile.vim23
4 files changed, 37 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8497a4c8..cc9602d7 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ A collection of language packs for Vim.
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
-- It **installs and updates 120+ times faster** than the <!--Package Count-->148<!--/Package Count--> packages it consists of.
+- It **installs and updates 120+ times faster** than the <!--Package Count-->149<!--/Package Count--> packages it consists of.
- Solid syntax and indentation support (other features skipped). Only the best language packs.
- All unnecessary files are ignored (like enormous documentation from php support).
- No support for esoteric languages, only most popular ones (modern too, like `slim`).
@@ -53,6 +53,7 @@ If you need full functionality of any plugin, please use it directly with your p
- [asciidoc](https://github.com/asciidoc/vim-asciidoc) (syntax)
- [autohotkey](https://github.com/hnamikaw/vim-autohotkey) (indent)
- [blade](https://github.com/jwalton512/vim-blade) (syntax, indent, ftplugin)
+- [brewfile](https://github.com/bfontaine/Brewfile.vim) (syntax)
- [c++11](https://github.com/octol/vim-cpp-enhanced-highlight) (syntax)
- [c/c++](https://github.com/vim-jp/vim-cpp) (syntax)
- [caddyfile](https://github.com/isobit/vim-caddyfile) (syntax, indent, ftplugin)
diff --git a/build b/build
index 7201f1c7..40bea5fd 100755
--- a/build
+++ b/build
@@ -171,6 +171,7 @@ PACKS="
asciidoc:asciidoc/vim-asciidoc
autohotkey:hnamikaw/vim-autohotkey
blade:jwalton512/vim-blade
+ brewfile:bfontaine/Brewfile.vim
c++11:octol/vim-cpp-enhanced-highlight
c/c++:vim-jp/vim-cpp
caddyfile:isobit/vim-caddyfile
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 54d71378..0b3754a1 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -206,6 +206,17 @@ autocmd BufNewFile,BufRead *.blade.php set filetype=blade
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'brewfile') == -1
+ augroup filetypedetect
+ " brewfile, from brewfile.vim in bfontaine/Brewfile.vim
+" Vim filetype plugin
+" Language: Brewfile
+" Mantainer: Baptiste Fontaine <b@ptistefontaine.fr>
+" URL: https://github.com/bfontaine/Brewfile.vim
+au BufNewFile,BufRead Brewfile,.Brewfile set filetype=ruby syntax=brewfile
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1
augroup filetypedetect
" caddyfile, from caddyfile.vim in isobit/vim-caddyfile
diff --git a/syntax/brewfile.vim b/syntax/brewfile.vim
new file mode 100644
index 00000000..4056c884
--- /dev/null
+++ b/syntax/brewfile.vim
@@ -0,0 +1,23 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'brewfile') == -1
+
+" Vim syntax file
+" Language: Brewfile
+" Maintainer: Baptiste Fontaine <b@ptistefontaine.fr>
+" URL: https://github.com/bfontaine/Brewfile.vim
+" Last Change: 2015 Jun 18
+
+if exists("b:current_syntax")
+ finish
+endif
+
+" Load ruby syntax
+source $VIMRUNTIME/syntax/ruby.vim
+unlet b:current_syntax
+
+syn keyword brewfileDirective brew cask tap mas cask_args
+
+hi def link brewfileDirective Keyword
+
+let b:current_syntax = "brewfile"
+
+endif