mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Lexer
- Words cannot contain single-char operators.
This commit is contained in:
parent
234e4d7308
commit
53e9bd0cbd
1 changed files with 3 additions and 1 deletions
|
@ -1047,7 +1047,9 @@ 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);
|
||||
|
||||
if (marker > _cursor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue