AST+Lexer: Move Keyword prefix character to the constructor
This commit is contained in:
+1
-1
@@ -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
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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(); // :
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user