diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 19:57:29 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-09-27 19:57:29 +0200 |
commit | 8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8 (patch) | |
tree | 125734ac66307a962eeda16283355dde0d0fbd2e /indent/terraform.vim | |
parent | 9bfde7574aa89a91b80ed9c993fc000cfc11aae7 (diff) | |
download | vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.tar.gz vim-polyglot-8b3418cab8eb5267b3a5743e4d5fe5f698d48bc8.zip |
Update
Diffstat (limited to 'indent/terraform.vim')
-rw-r--r-- | indent/terraform.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |