Skip to content

Commit

Permalink
Fix not respecting new string values in localize parser when processi…
Browse files Browse the repository at this point in the history
…ng matches
  • Loading branch information
Laupetin committed Sep 24, 2023
1 parent 0ffbd21 commit 8653c43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 8653c43

Please sign in to comment.