D24982: Small improvements in some XML files

Nibaldo González noreply at phabricator.kde.org
Mon Dec 2 21:08:04 GMT 2019


nibags added a comment.


  Captures can also be used without dynamic rules, for example in the regular expression: `("+)[^"]*\1`
  In these cases, a `capture="true"` attribute can be used to enable captures, but in dynamic rules the detection will be automatic.
  
  I could do a benchmark the test units with the disabled captures to check the improvement in performance, and see if these changes are worth making.
  
  I don't know if you want to include this diff. If you prefer, I can update this diff, remove the inclusion of `?:` in regex and leave only the other improvements.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D24982

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191202/220b442f/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list