Refactored Requirement parsing.

This commit is contained in:
Patrick Lühne 2016-06-04 17:47:01 +02:00
parent f2a1528ea9
commit 7e60631840

View File

@ -159,8 +159,7 @@ void Domain::parseRequirementSection()
while (m_context.parser.currentCharacter() != ')')
{
if (m_context.parser.currentCharacter() == ':')
m_context.parser.advance();
m_context.parser.expect<std::string>(":");
m_requirements.emplace_back(Requirement::parse(m_context));