- Strings now retain their quotes, for compatibility with 2.4.1.
This commit is contained in:
Paul Beckingham 2015-02-24 23:01:12 -05:00
parent 8c6892fed6
commit e67c6c45cf

View file

@ -344,8 +344,7 @@ bool Lexer::isString (std::string& token, Lexer::Type& type, int quote)
if (_text[marker] == quote) if (_text[marker] == quote)
{ {
++marker; token = _text.substr (marker++, 1);
token = "";
int c; int c;
while ((c = _text[marker])) while ((c = _text[marker]))
@ -403,7 +402,7 @@ bool Lexer::isString (std::string& token, Lexer::Type& type, int quote)
if (_text[marker] == quote) if (_text[marker] == quote)
{ {
++marker; token += _text.substr (marker++, 1);
type = Lexer::Type::string; type = Lexer::Type::string;
_cursor = marker; _cursor = marker;
return true; return true;