summaryrefslogtreecommitdiffstats
path: root/indent/gohtmltmpl.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--indent/gohtmltmpl.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim
index 898e36b0..ed9e2eb5 100644
--- a/indent/gohtmltmpl.vim
+++ b/indent/gohtmltmpl.vim
@@ -32,13 +32,13 @@ function! GetGoHTMLTmplIndent(lnum)
" If need to indent based on last line
let last_line = getline(a:lnum-1)
- if last_line =~ '^\s*{{\s*\%(if\|else\|range\|with\|define\|block\).*}}'
+ if last_line =~ '^\s*{{-\=\s*\%(if\|else\|range\|with\|define\|block\).*}}'
let ind += sw
endif
" End of FuncMap block
let current_line = getline(a:lnum)
- if current_line =~ '^\s*{{\s*\%(else\|end\).*}}'
+ if current_line =~ '^\s*{{-\=\s*\%(else\|end\).*}}'
let ind -= sw
endif