From fd35190ab006634cb08437d6b56074a747a8b8c0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 22 Jun 2015 11:55:19 -0400 Subject: [PATCH] Lexer: Fixed bug that caused 'name=value' to not be a Lexer::Type::pair --- src/Lexer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 0b2c19ce4..2fceb04a4 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -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++;