mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Fix not ignoring whitespace after macro parameter comma
This commit is contained in:
parent
d3519c2f62
commit
799fa37c44
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user