class Racc::GrammarFileScanner

def next_line

def next_line
  @lineno += 1
  @line = @lines[@lineno]
  if not @line or /\A----/ =~ @line
    @epilogue = @lines.join("\n")
    @lines.clear
    @line = nil
    if @in_block
      @lineno -= 1
      scan_error! sprintf('unterminated %s', @in_block)
    end
    false
  else
    @line.sub!(/(?:\n|\r\n|\r)\z/, '')
    @line_head = true
    true
  end
end