From e67c6c45cfa67f1ade50ddc599dfa4619fd4a40a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 24 Feb 2015 23:01:12 -0500 Subject: [PATCH] Lexer - Strings now retain their quotes, for compatibility with 2.4.1. --- src/Lexer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 855ee095d..f80b33199 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -344,8 +344,7 @@ bool Lexer::isString (std::string& token, Lexer::Type& type, int quote) if (_text[marker] == quote) { - ++marker; - token = ""; + token = _text.substr (marker++, 1); int c; while ((c = _text[marker])) @@ -403,7 +402,7 @@ bool Lexer::isString (std::string& token, Lexer::Type& type, int quote) if (_text[marker] == quote) { - ++marker; + token += _text.substr (marker++, 1); type = Lexer::Type::string; _cursor = marker; return true;