Lexer: Fixed bug that caused 'name=value' to not be a Lexer::Type::pair

This commit is contained in:
Paul Beckingham 2015-06-22 11:55:19 -04:00
parent b573a0ddcc
commit fd35190ab0

View file

@ -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++;