summaryrefslogtreecommitdiffstats
path: root/indent/eruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/eruby.vim')
-rw-r--r--indent/eruby.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/indent/eruby.vim b/indent/eruby.vim
index 3736f529..5b21ab91 100644
--- a/indent/eruby.vim
+++ b/indent/eruby.vim
@@ -97,6 +97,7 @@ function! GetErubyIndent(...)
let ind = ind + sw
endif
if line !~# '^\s*<%' && line =~# '%>\s*$' && line !~# '^\s*end\>'
+ \ && synID(v:lnum, match(cline, '\S') + 1, 1) != hlID('htmlEndTag')
let ind = ind - sw
endif
if cline =~# '^\s*[-=]\=%>\s*$'