From 8a227d11712504d1606b9488910e21d23ea65251 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 13 Mar 2021 15:47:42 +0100 Subject: [PATCH] Fix SimpleLexer not initializing read numbers property --- src/Parser/Parsing/Simple/SimpleLexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Parser/Parsing/Simple/SimpleLexer.cpp b/src/Parser/Parsing/Simple/SimpleLexer.cpp index 52199490..718bc915 100644 --- a/src/Parser/Parsing/Simple/SimpleLexer.cpp +++ b/src/Parser/Parsing/Simple/SimpleLexer.cpp @@ -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());