diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-11 09:20:12 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-11 09:20:36 +0100 |
commit | 420a65e9b0ab88095cd88c49167ab441a4dd1f3e (patch) | |
tree | e06444dd62853d76c3efdeb05b8a44e2bf98dc37 /ftdetect/polyglot.vim | |
parent | 2254b83675e3356f42cc011133da67c26512022f (diff) | |
download | vim-polyglot-3.7.0.tar.gz vim-polyglot-3.7.0.zip |
Add llvm support, closes #376v3.7.0
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index f1fc4962..37fc5552 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -714,6 +714,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 rhysd/vim-llvm +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 rhysd/vim-llvm +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 rhysd/vim-llvm +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 |