mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-01 06:27:26 +00:00
Fix not ignoring whitespace after macro parameter comma
This commit is contained in:
@@ -685,7 +685,7 @@ void DefinesStreamProxy::ContinueMacroParameters(
|
||||
state.m_parameters.emplace_back(state.m_current_parameter.str());
|
||||
state.m_current_parameter.clear();
|
||||
state.m_current_parameter.str(std::string());
|
||||
m_parameter_state = ParameterState::AFTER_COMMA;
|
||||
state.m_parameter_state = ParameterState::AFTER_COMMA;
|
||||
}
|
||||
}
|
||||
else if (c == '(' || c == '[' || c == '{')
|
||||
|
@@ -959,8 +959,8 @@ namespace test::parsing::impl::defines_stream_proxy
|
||||
ExpectLine(&proxy, 1, "");
|
||||
ExpectLine(&proxy, 2, "");
|
||||
ExpectLine(&proxy, 3, "");
|
||||
ExpectLine(&proxy, 4, "TEST");
|
||||
ExpectLine(&proxy, 5, "TESTTWO(testArg)");
|
||||
ExpectLine(&proxy, 4, "\"TEST\"");
|
||||
ExpectLine(&proxy, 5, "\"TESTTWO(testArg)\"");
|
||||
|
||||
REQUIRE(proxy.Eof());
|
||||
}
|
||||
|
Reference in New Issue
Block a user