aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/mlir.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/mlir.vim')
-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<"