- Improved comment.
This commit is contained in:
Paul Beckingham 2015-03-07 10:09:58 -05:00
parent c9d61ff71b
commit d202691638

View file

@ -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);