Skip to content
Browse files

ignore the rescue 'modifier' when indenting (#2296)

  • Loading branch information...
1 parent b1151fe commit 071422ded6d0f120f39303d4805594150fe1c320 @dkearns dkearns committed
Showing with 3 additions and 1 deletion.
  1. +2 −0 ChangeLog
  2. +1 −1 indent/ruby.vim
View
2 ChangeLog
@@ -1,5 +1,7 @@
2005-09-11 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
+ * indent/ruby.vim: ignore the rescue 'modifier' when indenting (#2296)
+
* indent/ruby.vim: fix comment typo
2005-09-10 Doug Kearns <djkea2@gus.gscit.monash.edu.au>
View
2 indent/ruby.vim
@@ -72,7 +72,7 @@ let s:end_start_regex = '^\s*\zs\<\%(module\|class\|def\|if\|for' .
\ '\|\<do\>'
" Regex that defines the middle-match for the 'end' keyword.
-let s:end_middle_regex = '\<\%(ensure\|else\|rescue\|when\|elsif\)\>'
+let s:end_middle_regex = '\<\%(ensure\|else\|\%(\%(^\|;\)\s*\)\@<=\<rescue\>\|when\|elsif\)\>'
" Regex that defines the end-match for the 'end' keyword.
let s:end_end_regex = '\%(^\|[^.]\)\@<=\<end\>'

0 comments on commit 071422d

Please sign in to comment.
Something went wrong with that request. Please try again.