mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 18:11:47 +00:00
vim-patch:9.1.0769: filetype: MLIR files are not recognized
Problem: filetype: MLIR files are not recognized
Solution: Detect '*.mlir' files as mlir filetype,
include a mlir filetype plugin
(Wu, Zhenyu)
closes: vim/vim#15826
347d43bd33
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
10
runtime/ftplugin/mlir.vim
Normal file
10
runtime/ftplugin/mlir.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: MLIR
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:///,://
|
||||
setl commentstring=//\ %s
|
||||
|
||||
let b:undo_ftplugin = "setl commentstring< comments<"
|
||||
@@ -752,6 +752,7 @@ local extension = {
|
||||
mib = 'mib',
|
||||
mix = 'mix',
|
||||
mixal = 'mix',
|
||||
mlir = 'mlir',
|
||||
mm = detect.mm,
|
||||
nb = 'mma',
|
||||
wl = 'mma',
|
||||
|
||||
Reference in New Issue
Block a user