nibags added a comment.
Then, in such a case, it would be better to make only conservative changes such as: - Change StringDetect to DetectChar or Detect2Chars. - Change AnyChar for DetectChar. - Change RegExpr for StringDetect, DetectChar or Detect2Chars. It would be better to undo some changes from RegExpr to WordDetect, DetectSpaces or Fallthrough to avoid regressions in older versions of KTextEditor. Because I do not believe that the difference in performance is so great as to justify the changes and stop supporting old versions. REPOSITORY R216 Syntax Highlighting REVISION DETAIL https://phabricator.kde.org/D11543 To: nibags, #framework_syntax_highlighting, dhaumann Cc: dhaumann, #frameworks, michaelh, genethomas, ngraham, cullmann, vkrause