mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Fix SimpleLexer not initializing read numbers property
This commit is contained in:
parent
a84a4051f9
commit
8a227d1171
@ -4,6 +4,7 @@ SimpleLexer::SimpleLexer(IParserLineStream* stream)
|
||||
: AbstractLexer(stream),
|
||||
m_emit_new_line_tokens(false),
|
||||
m_read_strings(true),
|
||||
m_read_numbers(true),
|
||||
m_last_line(1)
|
||||
{
|
||||
}
|
||||
@ -27,7 +28,7 @@ SimpleParserValue SimpleLexer::GetNextToken()
|
||||
{
|
||||
PeekChar();
|
||||
const auto nextCharPos = GetNextCharacterPos();
|
||||
if(m_emit_new_line_tokens && nextCharPos.m_line > m_last_line)
|
||||
if (m_emit_new_line_tokens && nextCharPos.m_line > m_last_line)
|
||||
{
|
||||
m_last_line++;
|
||||
return SimpleParserValue::NewLine(GetPreviousCharacterPos());
|
||||
|
Loading…
x
Reference in New Issue
Block a user