summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authordv <wdv4758h@gmail.com>2019-03-04 18:05:07 +0800
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 11:05:07 +0100
commit65f090faeff36d9b523196bd96ee7f149c441f63 (patch)
tree65415f7ea7cdceab937444610272d37ec449056d /ftdetect
parent58f9b8cd02ecb2a753d418627f57f917f5f748a9 (diff)
downloadvim-polyglot-65f090faeff36d9b523196bd96ee7f149c441f63.tar.gz
vim-polyglot-65f090faeff36d9b523196bd96ee7f149c441f63.zip
Add LLVM support (#376)
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 3316c3b7..1f8857b6 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -677,6 +677,27 @@ autocmd BufNewFile,BufRead *Slakefile set filetype=ls
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+ augroup filetypedetect
+ " llvm, from llvm-lit.vim in llvm/llvm-project:_ALL:/llvm/utils/vim/
+au BufRead,BufNewFile lit.*cfg set filetype=python
+ augroup end
+endif
+
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+ augroup filetypedetect
+ " llvm, from llvm.vim in llvm/llvm-project:_ALL:/llvm/utils/vim/
+au BufRead,BufNewFile *.ll set filetype=llvm
+ augroup end
+endif
+
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+ augroup filetypedetect
+ " llvm, from tablegen.vim in llvm/llvm-project:_ALL:/llvm/utils/vim/
+au BufRead,BufNewFile *.td set filetype=tablegen
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
augroup filetypedetect
" mako, from mako.vim in sophacles/vim-bundle-mako