In general looks good, and it even revealed a bug as I understand.
However, the KTextEditor framework still has its own implementation of the syntax highlighting. Can you also provide a patch there, so both implementations behave the same?
Could you initialize this to CaseInsensitive with in-class member initialization?
It seems that KTextEditor does not have the problem because KateHlWordDetect is based on KateHlStringDetect which uses the inSensitive parameter.
Yes, but it is in any case overwritten by doLoad(). StringDetect and others do not have this initialization either, should I also make the modification?