AST+Lexer: Move Keyword prefix character to the constructor

This commit is contained in:
Riyyi
2023-04-12 23:03:43 +02:00
parent c279f9111e
commit c8b1e6dc81
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ String::String(const std::string& data)
// ----------------------------------------- // -----------------------------------------
Keyword::Keyword(const std::string& data) Keyword::Keyword(const std::string& data)
: m_data(data) : m_data(std::string(1, 0x7f) + data) // 127
{ {
} }
-1
View File
@@ -170,7 +170,6 @@ bool Lexer::consumeKeyword()
{ {
size_t column = m_column; size_t column = m_column;
std::string keyword; std::string keyword;
keyword += 0x7f; // 127
ignore(); // : ignore(); // :