Lexer
- Strings now retain their quotes, for compatibility with 2.4.1.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user