diff --git a/tools/hdi-gen/parser/parser.cpp b/tools/hdi-gen/parser/parser.cpp index 0ad808fa..bea907ca 100644 --- a/tools/hdi-gen/parser/parser.cpp +++ b/tools/hdi-gen/parser/parser.cpp @@ -659,6 +659,7 @@ AutoPtr Parser::ParseType() break; case TokenType::SMQ: type = ParseSmqType(); + break; case TokenType::ENUM: case TokenType::STRUCT: case TokenType::UNION: @@ -671,7 +672,7 @@ AutoPtr Parser::ParseType() return nullptr; } if (type == nullptr) { - LogError(token, String::Format("this type was note declared in this scope")); + LogError(token, String::Format("this type was not declared in this scope")); } if (!CheckType(token, type)) { return nullptr;