mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Don't throw exception but set to $ when encountering invalid instance name #5680
This commit is contained in:
@@ -502,7 +502,9 @@ Token IfcParse::GeneralTokenPtr(IfcSpfLexer* lexer, unsigned start, unsigned end
|
|||||||
if (first == '#') {
|
if (first == '#') {
|
||||||
token.type = Token_IDENTIFIER;
|
token.type = Token_IDENTIFIER;
|
||||||
if (!ParseInt(tokenStr.c_str() + 1, token.value_int)) {
|
if (!ParseInt(tokenStr.c_str() + 1, token.value_int)) {
|
||||||
throw IfcException("Identifier token as not integer");
|
Logger::Message(Logger::LOG_ERROR, "Token '" + tokenStr + "' at offset " + std::to_string(token.startPos) + " is not valid");
|
||||||
|
token.type = Token_OPERATOR;
|
||||||
|
token.value_char = '$';
|
||||||
}
|
}
|
||||||
} else if (first == '\'') {
|
} else if (first == '\'') {
|
||||||
token.type = Token_STRING;
|
token.type = Token_STRING;
|
||||||
|
|||||||
Reference in New Issue
Block a user