diff options
Diffstat (limited to 'indent/terraform.vim')
-rw-r--r-- | indent/terraform.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indent/terraform.vim b/indent/terraform.vim index 129ec368..c035c216 100644 --- a/indent/terraform.vim +++ b/indent/terraform.vim @@ -49,6 +49,16 @@ function! TerraformIndent(lnum) let thisindent -= &shiftwidth endif + " If the previous line starts a block comment /*, increase by one + if prevline =~# '/\*' + let thisindent += 1 + endif + + " If the previous line ends a block comment */, decrease by one + if prevline =~# '\*/' + let thisindent -= 1 + endif + return thisindent endfunction |