2012-08-30 13:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
    ! Done: pairing of #ifdef|#if - #endif.

    With this commit pair highlighting is complete until someone 
    points to which escaped my knowledge.
This commit is contained in:
Pritpal Bedi
2012-08-30 20:10:48 +00:00
parent 6fb4bbcdde
commit 8be335fdd1
2 changed files with 15 additions and 4 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-08-30 13:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
! Done: pairing of #ifdef|#if - #endif.
With this commit pair highlighting is complete until someone
points to which escaped my knowledge.
2012-08-30 15:30 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/include/hbinit.h
* added HB_INIT_SYMBOLS_COUNT macro
@@ -25,7 +32,7 @@
* contrib/hbqt/qtgui/hbqt_hbqplaintextedit.h
+ Added: METHOD|FUNCTION|PROCEDURE-RETURN pairs.
+ Added: #if-#endif pair.
TODO: #ifdef-#endif pair.
DONE: #ifdef-#endif pair.
2012-08-29 14:16 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/console.prg

View File

@@ -2799,8 +2799,10 @@ void HBQPlainTextEdit::hbBraceHighlight()
else
{
QRegExp openBrace( "(#IFDEF|#IF)" );
openBrace.setCaseSensitivity( Qt::CaseInsensitive );
QRegExp closeBrace( "#ENDIF" );
matchPair( cursor, QRegExp(), openBrace, closeBrace, true, QTextDocument::FindWholeWords, false );
closeBrace.setCaseSensitivity( Qt::CaseInsensitive );
matchPair( cursor, QRegExp(), openBrace, closeBrace, true, 0, false );
return;
}
}
@@ -2882,8 +2884,10 @@ void HBQPlainTextEdit::hbBraceHighlight()
}
else if( ( brace == "RETURN" ) )
{
QRegExp openBrace( "(FUNCTION|METHOD|PROCEDURE)" );
QRegExp closeBrace( "\bRETURN\b" );
QRegExp openBrace( "\\b(FUNCTION|METHOD|PROCEDURE)\\b" );
openBrace.setCaseSensitivity( Qt::CaseInsensitive );
QRegExp closeBrace( "\\bRETURN\\b" );
closeBrace.setCaseSensitivity( Qt::CaseInsensitive );
matchPair( cursor, QRegExp(), openBrace, closeBrace, true, QTextDocument::FindWholeWords, false );
return;
}