diff --git a/src/Lexer.cpp b/src/Lexer.cpp index f929fe4b1..d8256eeb1 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -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)