aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h5
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
bgstack15