januz added a comment.
Thanks for the tips guys! This patch still has two problems (that I'm aware :) ): - I can't get it to match the dot in the float regex. The regex itself is ok (https://regexr.com/3idtj), but it just doesn't work. - The regexes don't work inside lists or dictionaries. I've noticed highlighting for complex numbers doesn't work either though, so it might not be related to this patch. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D8371 To: januz, #kate Cc: dhaumann, cullmann, #frameworks, genethomas, vkrause