changeset 35510:f69896b8f403

runtime(terraform): Add filetype plugin for terraform Commit: https://github.com/vim/vim/commit/2fbcc15cf93e8eb07d769ce301a33e10560af468 Author: Janno Tjarks <janno.tjarks@mailbox.org> Date: Thu Jul 4 11:44:01 2024 +0200 runtime(terraform): Add filetype plugin for terraform - Adds commentstring property for terraform - Adds comments property for terraform closes: #15144 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Janno Tjarks <janno.tjarks@mailbox.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 04 Jul 2024 12:00:03 +0200
parents 0c191d9c6206
children 729bfac87584
files .github/MAINTAINERS runtime/ftplugin/terraform.vim
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -241,6 +241,7 @@ runtime/ftplugin/systemverilog.vim	@Koch
 runtime/ftplugin/swig.vim		@jmarrec
 runtime/ftplugin/tap.vim		@petdance
 runtime/ftplugin/tcsh.vim		@dkearns
+runtime/ftplugin/terraform.vim		@JannoTjarks
 runtime/ftplugin/tidy.vim		@dkearns
 runtime/ftplugin/tmux.vim		@ericpruitt
 runtime/ftplugin/toml.vim		@averms
new file mode 100644
--- /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<"