mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Fix not respecting new string values in localize parser when processing matches
This commit is contained in:
parent
0ffbd21ade
commit
8653c434d1
@ -18,6 +18,7 @@ SequenceLocalizeFileReference::SequenceLocalizeFileReference()
|
||||
|
||||
void SequenceLocalizeFileReference::ProcessMatch(LocalizeFileParserState* state, SequenceResult<SimpleParserValue>& result) const
|
||||
{
|
||||
state->m_current_reference = result.NextCapture(CAPTURE_REFERENCE_NAME).IdentifierValue();
|
||||
const auto& nameToken = result.NextCapture(CAPTURE_REFERENCE_NAME);
|
||||
state->m_current_reference = nameToken.m_type == SimpleParserValueType::IDENTIFIER ? nameToken.IdentifierValue() : nameToken.StringValue();
|
||||
state->m_current_reference_languages.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user