mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer: Clarified ::isTag lookbehind rules
This commit is contained in:
parent
18b1f32466
commit
4141215d4b
1 changed files with 1 additions and 1 deletions
|
@ -838,7 +838,7 @@ bool Lexer::isTag (std::string& token, Lexer::Type& type)
|
|||
{
|
||||
std::size_t marker = _cursor;
|
||||
|
||||
// Lookbehind: ^ | '(' | ')' | <isWhiteSpace>
|
||||
// Lookbehind: Assert ^ or preceded by whitespace, (, or ).
|
||||
if (marker > 0 &&
|
||||
! isWhitespace (_text[marker - 1]) &&
|
||||
_text[marker - 1] != '(' &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue