Features in KDE Base
Bracket matching! I also had to reimplement the buggy findMatchingBracket method, but I think the new implementation is much easier to understand (thanks Dominik for the KateDocCursor tip).
There's one remaining issue: if you change the color for the highlighting it isn't applied until the next restart. But I'll fix that next, don't worry :) .