Lexer: Fixed bug that caused 'name=value' to not be a Lexer::Type::pair
This commit is contained in:
@@ -757,8 +757,9 @@ bool Lexer::isPair (std::string& token, Lexer::Type& type)
|
||||
}
|
||||
}
|
||||
|
||||
if (_eos - _cursor >= 1 &&
|
||||
_text[_cursor] == ':')
|
||||
if (_eos - _cursor >= 1 &&
|
||||
(_text[_cursor] == ':' ||
|
||||
_text[_cursor] == '='))
|
||||
{
|
||||
_cursor++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user