summaryrefslogtreecommitdiff
path: root/src/highlighter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/highlighter.h')
-rw-r--r--src/highlighter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/highlighter.h b/src/highlighter.h
index 09bba39..428bbbb 100644
--- a/src/highlighter.h
+++ b/src/highlighter.h
@@ -2,6 +2,8 @@
#define HIGHLIGHTER_H_
#include <QSyntaxHighlighter>
+#include <QTextFormat>
+#include <QHash>
class Highlighter : public QSyntaxHighlighter
{
@@ -17,8 +19,9 @@ private:
QTextBlock lastErrorBlock;
int errorPos;
bool errorState;
- QMap<QString,QStringList> tokentypes;
- QMap<QString,QTextCharFormat> typeformats;
+ QMap<QString,QStringList> tokentypes;
+ QMap<QString,QTextCharFormat> typeformats;
+ int lastDocumentPos();
void portable_rehighlightBlock( const QTextBlock &text );
};
contact: Jan Huwald // Impressum