Permalink
Browse files

May have fixed the blah.class/blah.module bug. Hopefully it is enough.

  • Loading branch information...
1 parent 938dce5 commit 8fcf4ee2eec87222b0224dd6cc65149bd83cc4ea Nikolai Weibull committed Oct 10, 2003
Showing with 4 additions and 1 deletion.
  1. +4 −1 indent/ruby.vim
View
5 indent/ruby.vim
@@ -212,8 +212,11 @@ function GetRubyIndent()
if col > 0 && !s:IsInStringOrComment(v:lnum, col)
call s:GotoLineCol(v:lnum, 0)
" Find the matching parent statement to it
+ " XXX: fixed the .class problem here, but I don't know if its the best way
+ " to do it
if searchpair('\<def\>\|\<do\>\|\<if\>\|\<unless\>\|\<case\>\|' .
- \'\<begin\>\|\<until\>\|\<for\>\|\<while\>\|\<class\>\|\<module\>',
+ \'\<begin\>\|\<until\>\|\<for\>\|\<while\>\|' .
+ \'\<\.\@<!class\>\|\<\.\@<!module\>',
\'\<ensure\>\|\<else\>\|\<rescue\>\|\<elsif\>\|\<when\>', '\<end\>',
\'bW', s:end_skip_expr) > 0
let ind = indent('.')

0 comments on commit 8fcf4ee

Please sign in to comment.