summaryrefslogtreecommitdiffstats
path: root/syntax/brewfile.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/brewfile.vim')
-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