From 420a65e9b0ab88095cd88c49167ab441a4dd1f3e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 11 Mar 2019 09:20:12 +0100 Subject: Add llvm support, closes #376 --- ftplugin/llvm.vim | 16 ++++++++++++++++ ftplugin/tablegen.vim | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 ftplugin/llvm.vim create mode 100644 ftplugin/tablegen.vim (limited to 'ftplugin') diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim new file mode 100644 index 00000000..0006c288 --- /dev/null +++ b/ftplugin/llvm.vim @@ -0,0 +1,16 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 + finish +endif + +" Vim filetype plugin file +" Language: LLVM Assembly +" Maintainer: The LLVM team, http://llvm.org/ + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +setlocal softtabstop=2 shiftwidth=2 +setlocal expandtab +setlocal comments+=:; diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim new file mode 100644 index 00000000..94909ef5 --- /dev/null +++ b/ftplugin/tablegen.vim @@ -0,0 +1,16 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 + finish +endif + +" Vim filetype plugin file +" Language: LLVM TableGen +" Maintainer: The LLVM team, http://llvm.org/ + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +setlocal matchpairs+=<:> +setlocal softtabstop=2 shiftwidth=2 +setlocal expandtab -- cgit v1.2.3