Parsing file with trailing comment fails

This commit is contained in:
Thomas Krijnen
2024-11-14 21:57:27 +01:00
parent 229e2daa42
commit dbdc2add81
+1 -1
View File
@@ -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;
} }