[Kbabel] highlighting - first draft

Marco Wegner dubbleu@web.de
Sun, 24 Nov 2002 04:14:05 +0100


--Boundary-00=_9PE49uFvcOnDrck
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Description: clearsigned data
Content-Disposition: inline

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 24 November 2002 02:45, Marco Wegner wrote:
> Hi all,
>
> I invite you to test the latest implementation of my highlighting class.

And here's already the first patch. It fixes one of the regular expressions.

Marco

- -- 
Marco Wegner <mail@marcowegner.de>, <dubbleu@web.de>
Contributing to KBabel http://i18n.kde.org/tools/kbabel 
   and kde-i18n-de http://i18n.kde.org/teams/de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE94EQFX3rotM03gSgRAnniAKDgZgjWqnKiF6txGgV+66xpUlI9CwCcDoWr
vsUeFkBRRNbR6Or88kWHg44=
=CS0v
-----END PGP SIGNATURE-----

--Boundary-00=_9PE49uFvcOnDrck
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="regexp.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="regexp.diff"

--- kbhighlighting.cpp	Sat Nov 23 23:33:15 2002
+++ /var/tmp/kdesdk/kbabel/kbabel/kbhighlighting.cpp	Sun Nov 24 04:01:52 2002
@@ -29,7 +29,7 @@
 
 KBabelHighlighter::KBabelHighlighter( QTextEdit * edit ) : _edit( edit )
 {
-  regexps << "(<[_:A-Za-z][-_.:A-Za-z0-9]*([\\s]*[_:A-Za-z][-_.:A-Za-z0-9]*=\"[^<>]*\")*[\\s]*/?>)|(</[_:A-Za-z][-_.:A-Za-z0-9]*[\\s]*>)";
+  regexps << "(<[_:A-Za-z][-_.:A-Za-z0-9]*([\\s]*[_:A-Za-z][-_.:A-Za-z0-9]*=\\\\\"[^<>]*\\\\\")*[\\s]*/?>)|(</[_:A-Za-z][-_.:A-Za-z0-9]*[\\s]*>)";
   regexps << "(&[A-Za-z_:][A-Za-z0-9_.:-]*;)|(&[\\w])";
   regexps << "%[\\ddioxXucsfeEgGphln]+";
   regexps << "(\\\\[abfnrtv'\"\?\\\\])|(\\\\\\d+)|(\\\\x[\\dabcdef]+)";

--Boundary-00=_9PE49uFvcOnDrck--