From a3bdbcdb3c60a9563fb90e02b28ae46cee5ef974 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 14 Aug 2020 19:15:07 +0200 Subject: Fix svelte branch name, closes #522 --- indent/terraform.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'indent/terraform.vim') 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 -- cgit v1.2.3