Add LLVM support (#376)

This commit is contained in:
dv
2019-03-04 18:05:07 +08:00
committed by Adam Stankiewicz
parent 58f9b8cd02
commit 65f090faef
8 changed files with 427 additions and 0 deletions

View File

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