summaryrefslogtreecommitdiffstats
path: root/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-04-25 22:15:02 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-04-25 22:15:02 +0200
commit6a15d48ed4bf74f7d969032ea432d2815d38ea78 (patch)
tree6337b7f7189e536ab7f9100ab03a5e01341e38aa /syntax
parent24f0581a96e682ef108c5b417b26563f4df022f5 (diff)
downloadvim-polyglot-4.3.0.tar.gz
vim-polyglot-4.3.0.zip
Add brewfile support, closes #469v4.3.0
Diffstat (limited to 'syntax')
-rw-r--r--syntax/brewfile.vim23
1 files changed, 23 insertions, 0 deletions
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