mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer
- Strings now retain their quotes, for compatibility with 2.4.1.
This commit is contained in:
parent
8c6892fed6
commit
e67c6c45cf
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue