Permalink
Browse files

Addresses failing test case from previous commit.

This alters the changes introduced in 6582a8f.  All test cases
are presently passing, so I do not believe a regression has
been introduced, but the commit has been noted here for
completeness.
  • Loading branch information...
1 parent 506f132 commit e1451cd9396fb8b9692fd804066b6d66124de93f Steven G. Harms committed Mar 16, 2011
Showing with 5 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +4 −2 lib/rdoc/ruby_lex.rb
View
1 .gitignore
@@ -5,3 +5,4 @@
/pkg
/tmp
.DS_Store
+.rvmrc
View
6 lib/rdoc/ruby_lex.rb
@@ -403,9 +403,11 @@ def lex_init()
res = ''
nil until (ch = getc) == "\n"
- until peek_equal?("=end") && peek(4) =~ /\s/ do
- until (ch = getc) == "\n" do res << ch end
+ until ( peek_equal?("=end") && peek(4) =~ /\s/ ) do
+ (ch = getc)
+ res << ch
end
+
gets # consume =end
@ltype = nil

0 comments on commit e1451cd

Please sign in to comment.