diff options
author | Ken Moore <ken@pcbsd.org> | 2016-08-02 15:55:30 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-08-02 15:55:30 -0400 |
commit | 15c161c4f6a0e9dfb43f0752882ac93d127a0bda (patch) | |
tree | 24648e71dcf825ed975651a354fd670569808fc6 /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h | |
parent | Add a quick existance check to the userbutton plugin when adding favorites to... (diff) | |
download | lumina-15c161c4f6a0e9dfb43f0752882ac93d127a0bda.tar.gz lumina-15c161c4f6a0e9dfb43f0752882ac93d127a0bda.tar.bz2 lumina-15c161c4f6a0e9dfb43f0752882ac93d127a0bda.zip |
Start cleaning up the rst syntax highlighting.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h index c96c404d..5f99dc50 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h +++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h @@ -12,6 +12,7 @@ #include <QTextCharFormat> #include <QString> #include <QSettings> +#include <QDebug> //Simple syntax rules struct SyntaxRule{ @@ -49,6 +50,7 @@ public: } protected: void highlightBlock(const QString &text){ + //qDebug() << "Highlight Block:" << text; for(int i=0; i<rules.length(); i++){ QRegExp patt(rules[i].pattern); //need a copy of the rule's pattern (will be changing it below) int index = patt.indexIn(text); @@ -81,6 +83,7 @@ protected: } //end check for end match //Look for the start of any new split rule for(int i=0; i<splitrules.length() && splitactive<0; i++){ + //qDebug() << "Look for start of split rule:" << splitrules[i].startPattern << splitactive; int newstart = splitrules[i].startPattern.indexIn(text,start); if(newstart>=start){ splitactive = i; @@ -92,4 +95,4 @@ protected: setCurrentBlockState(splitactive); } }; -#endif
\ No newline at end of file +#endif |