Allow disabling of individual ftdetect rules via g:polyglot_disabled

This commit is contained in:
Dan Reif 2018-04-16 11:31:57 -07:00
parent cab6866e21
commit 98f90bced5
2 changed files with 596 additions and 339 deletions

18
build
View File

@ -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;
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

File diff suppressed because it is too large Load Diff