mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 21:13:50 -05:00
Update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user