Performance optimisation for highlight detection, as discussed on kwrite-devel. Results in significant gains (this routine ~x15 faster) when saving & loading for slow computers or many files.  Reviewed by Christoph.
Performance optimisation for highlight detection, as discussed on
kwrite-devel. Results in significant gains (this routine ~x15 faster) when
saving & loading for slow computers or many files.  Reviewed by Christoph.

svn path=/trunk/kdelibs/kate/; revision=271080

cmacq2/kate,hlamer/kate,cmacq2/kate,sandsmark/kate,DickJ/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,DickJ/kate,sandsmark/kate,hlamer/kate,DickJ/kate,DickJ/kate