From 8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 27 Sep 2017 19:57:29 +0200 Subject: Update --- indent/terraform.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indent/terraform.vim') diff --git a/indent/terraform.vim b/indent/terraform.vim index 30c78229..5a29dfb4 100644 --- a/indent/terraform.vim +++ b/indent/terraform.vim @@ -30,7 +30,7 @@ function! TerraformIndent(lnum) let thisindent = previndent " block open? - if prevline =~ '[\[{]\s*$' + if prevline =~ '[\[{\(]\s*$' let thisindent += &sw endif @@ -38,7 +38,7 @@ function! TerraformIndent(lnum) let thisline = substitute(getline(a:lnum), '//.*$', '', '') " block close? - if thisline =~ '^\s*[\]}]' + if thisline =~ '^\s*[\)\]}]' let thisindent -= &sw endif -- cgit v1.2.3