From 65f090faeff36d9b523196bd96ee7f149c441f63 Mon Sep 17 00:00:00 2001 From: dv Date: Mon, 4 Mar 2019 18:05:07 +0800 Subject: Add LLVM support (#376) --- ftdetect/polyglot.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3