summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/build b/build
index 42a121db..1210e656 100755
--- a/build
+++ b/build
@@ -59,14 +59,16 @@ extract() {
continue
fi
- for f in ${dir}/ftdetect/*; do
- (
- echo "augroup filetypedetect";
- echo '" '"$pack";
- cat "${f}";
- echo "augroup END";
- echo
- ) >> tmp/polyglot.vim;
+ [ -d "${dir}/ftdetect" ] && for f in "${dir}/ftdetect/"*; do
+ cat <<EOF >> tmp/polyglot.vim
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '${pack%%:*}') == -1
+ augroup filetypedetect
+ " ${pack%%:*}, from ${f##*/ftdetect/} in ${pack#*:}
+$(cat "${f}")
+ augroup end
+endif
+
+EOF
done
done
@@ -150,6 +152,7 @@ PACKS="
groovy:vim-scripts/groovy.vim
haml:sheerun/vim-haml
handlebars:mustache/vim-mustache-handlebars
+ haproxy:CH-DanReif/haproxy.vim
haskell:neovimhaskell/haskell-vim
haxe:yaymukund/vim-haxe
html5:othree/html5.vim