diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-25 22:15:02 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-25 22:15:02 +0200 |
commit | 6a15d48ed4bf74f7d969032ea432d2815d38ea78 (patch) | |
tree | 6337b7f7189e536ab7f9100ab03a5e01341e38aa | |
parent | 24f0581a96e682ef108c5b417b26563f4df022f5 (diff) | |
download | vim-polyglot-4.3.0.tar.gz vim-polyglot-4.3.0.zip |
Add brewfile support, closes #469v4.3.0
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | build | 1 | ||||
-rw-r--r-- | ftdetect/polyglot.vim | 11 | ||||
-rw-r--r-- | syntax/brewfile.vim | 23 |
4 files changed, 37 insertions, 1 deletions
@@ -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) @@ -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 |