cullmann added a comment.
The change in the results look reasonable. For the loop itself: Should one not combine both loops? e.g. loop as long as either the emptycontext is stay and one does switch at line end or the emptycontext doesn't stay? Then one can handle intermixed things. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D20148 To: nibags, #framework_syntax_highlighting, cullmann, dhaumann, vkrause Cc: kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann