Revision b79d22f...

Go back to digest for 21st April 2013

Optimization in KDE Base

Gerald Senarclens de Grancy committed changes in [kate] /:

Rewrote xml indenter and added a small test-suite

removed many of the really complicated regular expressions
and replaced them using the nice .isComment, .isCode, ... functions
also works properly on aligning etc.


REVIEW: 110018

File Changes

Added 44 files
  • /data/indent/xml
  •   tests/.kateconfig
  •   tests/arguments1/expected
  •   tests/arguments1/input.js
  •   tests/arguments1/origin
  •   tests/arguments2/expected
  •   tests/arguments2/input.js
  •   tests/arguments2/origin
  •   tests/arguments3/expected
  •   tests/arguments3/input.js
  •   tests/arguments3/origin
  •   tests/arguments4/expected
  •   tests/arguments4/input.js
  •   tests/arguments4/origin
  •   tests/closing1/expected
  •   tests/closing1/input.js
  •   tests/closing1/origin
  •   tests/closing2/expected
  •   tests/closing2/input.js
  •   tests/closing2/origin
  •   tests/closing3/expected
  •   tests/closing3/input.js
  •   tests/closing3/origin
  •   tests/comment1/expected
  •   tests/comment1/input.js
  •   tests/comment1/origin
  •   tests/comment1/README
  •   tests/comment2/expected
  •   tests/comment2/input.js
  •   tests/comment2/origin
  •   tests/opening1/expected
  •   tests/opening1/input.js
  •   tests/opening1/origin
  •   tests/self_closing1/expected
  •   tests/self_closing1/input.js
  •   tests/self_closing1/origin
  •   tests/text1/expected
  •   tests/text1/input.js
  •   tests/text1/origin
  •   tests/text2/expected
  •   tests/text2/input.js
  •   tests/text2/origin
  •   tests/xhtml1/expected
  •   tests/xhtml1/input.js
  •   tests/xhtml1/origin
Modified 4 files
  •   tests/indenttest.cpp
  •   tests/indenttest.h
  •   part/script/data/indentation/xml.js
  •   part/script/data/libraries/string.js
48 files changed in total