Commits

Anonymous committed 4d38344

Update ruby plugin

Comments (0)

Files changed (1)

vimfiles/indent/ruby.vim

     return ind
   endif
 
-  " If the previous line ended with [*+/.,-=], but wasn't a block ending,
-  " indent one extra level.
-  if s:Match(lnum, s:non_bracket_continuation_regex)
-        \ && !s:Match(lnum, '^\s*\(}\|end\)')
-        \ && !s:IsInStringOrComment(lnum, len(line))
+  " If the previous line ended with [*+/.,-=], but wasn't a block ending or a
+  " closing bracket, indent one extra level.
+  if s:Match(lnum, s:non_bracket_continuation_regex) && !s:Match(lnum, '^\s*\([\])}]\|end\)')
     if lnum == p_lnum
       let ind = msl_ind + &sw
     else