mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer
- Improved comment.
This commit is contained in:
parent
c9d61ff71b
commit
d202691638
1 changed files with 3 additions and 2 deletions
|
@ -706,6 +706,7 @@ bool Lexer::isPair (std::string& token, Lexer::Type& type)
|
|||
Lexer::Type ignoredType;
|
||||
if (isIdentifier (ignoredToken, ignoredType))
|
||||
{
|
||||
// Look for rc.name[:=]value first, because '=' is allowed.
|
||||
if (ignoredToken == "rc" ||
|
||||
ignoredToken.substr (0, 3) == "rc.")
|
||||
{
|
||||
|
@ -1048,8 +1049,8 @@ bool Lexer::isWord (std::string& token, Lexer::Type& type)
|
|||
{
|
||||
std::size_t marker = _cursor;
|
||||
|
||||
while (_text[marker] &&
|
||||
! isWhitespace (_text[marker]) &&
|
||||
while (_text[marker] &&
|
||||
! isWhitespace (_text[marker]) &&
|
||||
! isSingleCharOperator (_text[marker]))
|
||||
utf8_next_char (_text, marker);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue