class SimplePoParser::Parser

def msgid

msgid is required

Will advance to msgstr or msgstr_plural based on msgid_plural
matches the msgid line. Will check for optional msgid_plural.
def msgid
  begin
    if @scanner.scan(/msgid/)
      skip_whitespace
      text = message_line
      add_result(:msgid, text)
      message_multiline(:msgid) if @scanner.peek(1) == '"'
      if msgid_plural
        msgstr_plural
      else
        msgstr
      end
    else
      err_msg = "Message without msgid is not allowed."
      err_msg += "The Line started unexpectedly with #{@scanner.peek(10).inspect}."
      raise PoSyntaxError, err_msg
    end
  rescue PoSyntaxError => pe
    raise PoSyntaxError, "Syntax error in msgid\n" + pe.message, pe.backtrace
  end
end