aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-10-09 09:44:15 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-10-09 10:10:39 +0200
commit0264870c0aa50fd4e34fb8a6b3c3c3cd88a22db7 (patch)
treea22695c0c8a066cff0aba8e84eb8e16d93e715f7 /runtime/ftplugin
parent6d9c73042f547d72147aca068126230b1cb76534 (diff)
downloadrneovim-0264870c0aa50fd4e34fb8a6b3c3c3cd88a22db7.tar.gz
rneovim-0264870c0aa50fd4e34fb8a6b3c3c3cd88a22db7.tar.bz2
rneovim-0264870c0aa50fd4e34fb8a6b3c3c3cd88a22db7.zip
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 https://github.com/vim/vim/commit/347d43bd33519ab537f77d1a8fa8ab8f9196bcb9 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/mlir.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/ftplugin/mlir.vim b/runtime/ftplugin/mlir.vim
new file mode 100644
index 0000000000..c6a9dc341f
--- /dev/null
+++ b/runtime/ftplugin/mlir.vim
@@ -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<"