diff --git a/lib/pddlparse/src/pddlparse/detail/parsing/Description.cpp b/lib/pddlparse/src/pddlparse/detail/parsing/Description.cpp index b7ded73..97236a5 100644 --- a/lib/pddlparse/src/pddlparse/detail/parsing/Description.cpp +++ b/lib/pddlparse/src/pddlparse/detail/parsing/Description.cpp @@ -70,6 +70,17 @@ void DescriptionParser::findSections() const auto position = tokenizer.position(); tokenizer.expect("("); + + if (tokenizer.testAndReturn("in-package")) + { + m_context.warningCallback(tokenizer.location(), "ignoring “in-package” section, which is not part of the PDDL 3.1 specification"); + + skipSection(tokenizer); + tokenizer.skipWhiteSpace(); + + continue; + } + tokenizer.expect("define"); tokenizer.expect("(");