Lexer: Clarified ::isTag lookbehind rules

This commit is contained in:
Paul Beckingham 2015-07-04 10:48:44 -04:00
parent 18b1f32466
commit 4141215d4b

View file

@ -838,7 +838,7 @@ bool Lexer::isTag (std::string& token, Lexer::Type& type)
{ {
std::size_t marker = _cursor; std::size_t marker = _cursor;
// Lookbehind: ^ | '(' | ')' | <isWhiteSpace> // Lookbehind: Assert ^ or preceded by whitespace, (, or ).
if (marker > 0 && if (marker > 0 &&
! isWhitespace (_text[marker - 1]) && ! isWhitespace (_text[marker - 1]) &&
_text[marker - 1] != '(' && _text[marker - 1] != '(' &&