Skip to content

Commit

Permalink
eruby indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdrew committed Apr 18, 2012
1 parent 95d12d0 commit 4347493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indent/eruby.vim
Expand Up @@ -60,7 +60,7 @@ function! GetErubyIndent(...)
if cline =~# '^\s*<%[-=]\=\s*\%(\%(}\|end\)\%([\.\s].\{-}\)\=\|else\|\%(ensure\|rescue\|elsif\|when\).\{-\}\)\s*\%([-=]\=%>\|$\)'
let ind = ind - &sw
endif
if line =~# '\S\s*<%[-=]\=.*\s\=\%(}\|end\>\)\%([.;].\{-}\)\=\s*\%([-=]\=%>\|$\)'
if line =~# '\S\s*<%[-=]\=[^{]*\s\=\%(}\|\<end\>\)\%([.;].\{-}\)\=\s*\%([-=]\=%>\|$\)'
let ind = ind - &sw
endif
if line =~# '\%({\|\<do\)\%(\s*|[^|]*|\)\=\s*[-=]\=%>'
Expand Down

0 comments on commit 4347493

Please sign in to comment.