From cc628d6ce6fd9bf63fc4b37b24cabd02308b1b4d Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sun, 16 Aug 2015 22:24:49 +0100 Subject: [PATCH] Syntax highlighting from parser .. oopsie on binary expression. NOTE: it may be better to highlight tokens rather than via the parser as errors make it impossible to highlight the "intention" of the user --- src/DataFilter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DataFilter.cpp b/src/DataFilter.cpp index b6b28c4ba..773568baf 100644 --- a/src/DataFilter.cpp +++ b/src/DataFilter.cpp @@ -265,6 +265,7 @@ void Leaf::color(Leaf *leaf, QTextDocument *document) case Leaf::BinaryOperation : leaf->color(leaf->lvalue.l, document); leaf->color(leaf->rvalue.l, document); + return; break; case Leaf::Function :