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: #15826
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ded59139fd
commit
347d43bd33
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<"
|
||||
Reference in New Issue
Block a user