From de93c635352624d0f6c57f19b65fe68b2afe9559 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 24 Jun 2015 12:47:24 -0400 Subject: [PATCH] Lexer: Not longer considers ( ) part of a contiguous token --- src/Lexer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index b1ea50f5d..2642d56c9 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -1168,8 +1168,10 @@ bool Lexer::isContiguous (std::string& token, Lexer::Type& type) { std::size_t marker = _cursor; - while (_text[marker] && - ! isWhitespace (_text[marker])) + while (_text[marker] && + ! isWhitespace (_text[marker]) && + _text[marker] != '(' && + _text[marker] != ')') utf8_next_char (_text, marker); if (marker > _cursor)