mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Fix abstract lexer not currently setting string token pos
This commit is contained in:
parent
109955b8f2
commit
18aa914d70
@ -118,7 +118,7 @@ SimpleParserValue SimpleLexer::GetNextToken()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_config.m_read_strings && c == '\"')
|
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())))
|
if (m_config.m_read_numbers && (isdigit(c) || c == '.' && isdigit(PeekChar())))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user