More parser-style-induced cleaning up.

This commit is contained in:
Nathan Weizenbaum 2008-05-29 00:23:35 -07:00
parent 20bf0b558f
commit 59c438f623
1 changed files with 4 additions and 8 deletions

View File

@ -112,15 +112,11 @@ END
Line = Struct.new(:text, :unstripped, :full, :index, :spaces, :tabs)
def precompile
old_line = Line.new
while line = next_line
if old_line.text.nil?
old_line = line
old_line = next_line
resolve_newlines
newline
next
end
while line = next_line
process_indent(old_line) unless old_line.text.empty?
if flat?