- Words cannot contain single-char operators.
This commit is contained in:
Paul Beckingham 2015-03-02 00:03:01 -05:00
parent 234e4d7308
commit 53e9bd0cbd

View file

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