Skip to content

Commit

Permalink
Addresses failing test case from previous commit.
Browse files Browse the repository at this point in the history
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
sgharms committed Mar 18, 2011
1 parent 506f132 commit e1451cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/pkg
/tmp
.DS_Store
.rvmrc
6 changes: 4 additions & 2 deletions lib/rdoc/ruby_lex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1451cd

Please sign in to comment.