Lexer: Not longer considers ( ) part of a contiguous token

This commit is contained in:
Paul Beckingham 2015-06-24 12:47:24 -04:00
parent edff3e0e94
commit de93c63535

View file

@ -1169,7 +1169,9 @@ bool Lexer::isContiguous (std::string& token, Lexer::Type& type)
std::size_t marker = _cursor; std::size_t marker = _cursor;
while (_text[marker] && while (_text[marker] &&
! isWhitespace (_text[marker])) ! isWhitespace (_text[marker]) &&
_text[marker] != '(' &&
_text[marker] != ')')
utf8_next_char (_text, marker); utf8_next_char (_text, marker);
if (marker > _cursor) if (marker > _cursor)