diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-12 23:37:20 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-12 23:37:20 (GMT) |
commit | 987cd438f64b6b06cffe31a512584e55b41cad9d (patch) | |
tree | 3427e768415af0699d44f0e13970a83cab74edd4 /src/highlighter.h | |
parent | f4f06d48d852437ee0d70b7541c9b8a1893d9624 (diff) |
fix qt4.4, old gcc, and mention Giles' Rapcad higlighter
Diffstat (limited to 'src/highlighter.h')
-rw-r--r-- | src/highlighter.h | 7 |
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 ); }; |