From 8dac9382b6a086a4f902c3efe334797da4736f62 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 5 Jul 2012 17:58:46 +0000 Subject: [PATCH] 2012-07-05 10:54 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp ! Fixed: QRegExpression - patternQuotation - which was displaying more than one per line string literals wrongly. Patch provided by Grzegorz on users-list, thanks. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2936cb8018..5cdb722c59 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2012-07-05 10:54 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp + ! Fixed: QRegExpression - patternQuotation - which was displaying + more than one per line string literals wrongly. + Patch provided by Grzegorz on users-list, thanks. + 2012-07-05 12:47 UTC+0200 Viktor Szakats (harbour syenar.net) * doc/en/sayget.txt * doc/en/set.txt diff --git a/harbour/contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp b/harbour/contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp index c9fa3dc95e..bb10a76551 100644 --- a/harbour/contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp +++ b/harbour/contrib/hbqt/qtgui/hbqt_hbqsyntaxhighlighter.cpp @@ -94,7 +94,7 @@ HBQSyntaxHighlighter::HBQSyntaxHighlighter( QTextDocument * parent ) commentStartExpression = QRegExp( "/\\*" ); commentEndExpression = QRegExp( "\\*/" ); commentSingleLine = QRegExp( "//[^\n]*|^[ ]*\\*[^\n]*" ); - patternQuotation = QRegExp( "\"[^\"]+\"|\'[^\']+\'" ); + patternQuotation = QRegExp( "\"[^\"]*\"|\'[^\']*\'" ); initialized = false; type = 0;