This commit is contained in:
Adam Stankiewicz
2021-03-10 17:22:05 +01:00
parent cc63193ce8
commit eda351ca89
21 changed files with 490 additions and 101 deletions

View File

@@ -19,6 +19,6 @@ set lisp
" Comment string
setl commentstring=;\ %s
setl comments=:;
setl comments=n:;
setl iskeyword+=#,?,.,/

View File

@@ -26,7 +26,7 @@ setlocal fo-=t fo+=croql
let b:julia_vim_loaded = 1
let b:undo_ftplugin = "setlocal include< suffixesadd< comments< commentstring<"
\ . " define< fo< shiftwidth< expandtab< indentexpr< indentkeys< cinoptions< omnifunc<"
\ . " define< fo< shiftwidth< expandtab< indentexpr< indentkeys< cinoptions< completefunc<"
\ . " | unlet! b:commentary_format"
\ . " | unlet! b:smartcomment_force_linemode"
\ . " | unlet! b:julia_vim_loaded"

View File

@@ -5,5 +5,5 @@ endif
if exists('b:did_ftplugin') | finish | endif
let b:did_ftplugin = 1
setlocal comments=://
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
setlocal commentstring=//\ %s

16
ftplugin/mlir.vim Normal file
View File

@@ -0,0 +1,16 @@
if polyglot#init#is_disabled(expand('<sfile>:p'), 'llvm', 'ftplugin/mlir.vim')
finish
endif
" Vim filetype plugin file
" Language: MLIR Assembly
" Maintainer: The MLIR team
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
setlocal comments+=://

View File

@@ -16,4 +16,4 @@ let b:did_ftplugin=1
" Comment string
setl commentstring=;\ %s
setl comments=:;
setl comments=n:;