mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Parsing file with trailing comment fails
This commit is contained in:
@@ -1377,7 +1377,7 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
|
|||||||
Logger::Message(Logger::LOG_ERROR, "Parsing terminated");
|
Logger::Message(Logger::LOG_ERROR, "Parsing terminated");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next_token.type == Token_NONE) {
|
if (!stream->eof && next_token.type == Token_NONE) {
|
||||||
good_ = file_open_status::INVALID_SYNTAX;
|
good_ = file_open_status::INVALID_SYNTAX;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user