From 8a338c0ccc1cf874cd21ca3be6695c253079bd9a Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 4 Jul 2024 11:54:37 +0200 Subject: [PATCH] vim-patch:2fbcc15: runtime(terraform): Add filetype plugin for terraform - Adds commentstring property for terraform - Adds comments property for terraform closes: vim/vim#15144 https://github.com/vim/vim/commit/2fbcc15cf93e8eb07d769ce301a33e10560af468 Co-authored-by: Janno Tjarks Co-authored-by: zeertzjq --- runtime/ftplugin/terraform.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/terraform.vim diff --git a/runtime/ftplugin/terraform.vim b/runtime/ftplugin/terraform.vim new file mode 100644 index 0000000000..b03cab3638 --- /dev/null +++ b/runtime/ftplugin/terraform.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: terraform +" Maintainer: Janno Tjarks (janno.tjarks@mailbox.org) +" Last Change: 2024 Jul 3 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal commentstring=#\ %s +setlocal comments=://,:# + +let b:undo_ftplugin = "setlocal commentstring< comments<"