|
|
@ -160,7 +160,7 @@ bool Lexer::getString() |
|
|
|
std::string symbol = ""; |
|
|
|
std::string symbol = ""; |
|
|
|
|
|
|
|
|
|
|
|
// Break on "\r\n
|
|
|
|
// Break on "\r\n
|
|
|
|
std::string breakOnGrammar = std::string("\"") + '\r' + '\n'; |
|
|
|
std::string breakOnGrammar = std::string("\"") + '\r' + '\n' + '\0'; |
|
|
|
|
|
|
|
|
|
|
|
bool escape = false; |
|
|
|
bool escape = false; |
|
|
|
char character = consume(); |
|
|
|
char character = consume(); |
|
|
@ -200,7 +200,7 @@ bool Lexer::getNumberOrLiteral(Token::Type type) |
|
|
|
{ |
|
|
|
{ |
|
|
|
size_t column = m_column; |
|
|
|
size_t column = m_column; |
|
|
|
std::string symbol = ""; |
|
|
|
std::string symbol = ""; |
|
|
|
std::string breakOnGrammar = std::string("{}[]:,\" ") + '\t' + '\r' + '\n'; |
|
|
|
std::string breakOnGrammar = std::string("{}[]:,\" ") + '\t' + '\r' + '\n' + '\0'; |
|
|
|
|
|
|
|
|
|
|
|
for (char character;;) { |
|
|
|
for (char character;;) { |
|
|
|
character = peek(); |
|
|
|
character = peek(); |
|
|
|