mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +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");
|
||||
}
|
||||
|
||||
if (next_token.type == Token_NONE) {
|
||||
if (!stream->eof && next_token.type == Token_NONE) {
|
||||
good_ = file_open_status::INVALID_SYNTAX;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user