Fix abstract lexer not currently setting string token pos

This commit is contained in:
Jan 2021-11-14 20:03:37 +01:00
parent 109955b8f2
commit 18aa914d70

View File

@ -118,7 +118,7 @@ SimpleParserValue SimpleLexer::GetNextToken()
}
if (m_config.m_read_strings && c == '\"')
return SimpleParserValue::String(GetPreviousCharacterPos(), new std::string(ReadString()));
return SimpleParserValue::String(pos, new std::string(ReadString()));
if (m_config.m_read_numbers && (isdigit(c) || c == '.' && isdigit(PeekChar())))
{