mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Lexer: Not longer considers ( ) part of a contiguous token
This commit is contained in:
parent
edff3e0e94
commit
de93c63535
1 changed files with 4 additions and 2 deletions
|
@ -1169,7 +1169,9 @@ bool Lexer::isContiguous (std::string& token, Lexer::Type& type)
|
||||||
std::size_t marker = _cursor;
|
std::size_t marker = _cursor;
|
||||||
|
|
||||||
while (_text[marker] &&
|
while (_text[marker] &&
|
||||||
! isWhitespace (_text[marker]))
|
! isWhitespace (_text[marker]) &&
|
||||||
|
_text[marker] != '(' &&
|
||||||
|
_text[marker] != ')')
|
||||||
utf8_next_char (_text, marker);
|
utf8_next_char (_text, marker);
|
||||||
|
|
||||||
if (marker > _cursor)
|
if (marker > _cursor)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue