diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-04 11:54:37 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-04 14:06:41 +0200 |
commit | 8a338c0ccc1cf874cd21ca3be6695c253079bd9a (patch) | |
tree | f421b0bfaf84e211d67fb75b381624f54cd0ef45 | |
parent | 0803ac7b085c75f55849949367b20a796b50b86e (diff) | |
download | rneovim-8a338c0ccc1cf874cd21ca3be6695c253079bd9a.tar.gz rneovim-8a338c0ccc1cf874cd21ca3be6695c253079bd9a.tar.bz2 rneovim-8a338c0ccc1cf874cd21ca3be6695c253079bd9a.zip |
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 <janno.tjarks@mailbox.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
-rw-r--r-- | runtime/ftplugin/terraform.vim | 14 |
1 files changed, 14 insertions, 0 deletions
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<" |