summaryrefslogtreecommitdiff
path: root/src/highlighter.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-13 02:07:15 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-13 02:07:15 (GMT)
commitd61593979199c1c025df07a5a1db879cce165529 (patch)
treed5cdc81471c77e44401fa7f4216740f702f03fd7 /src/highlighter.h
parent59910af66ae166f2afd9925cbef9c026fe47f6ae (diff)
balance colors, fix bug in numbers, highlight more stuff
Diffstat (limited to 'src/highlighter.h')
-rw-r--r--src/highlighter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlighter.h b/src/highlighter.h
index 428bbbb..b4ffae8 100644
--- a/src/highlighter.h
+++ b/src/highlighter.h
@@ -9,8 +9,8 @@ class Highlighter : public QSyntaxHighlighter
{
public:
enum state_e {NORMAL=-1,QUOTE,COMMENT};
- QHash<QString, QTextCharFormat> formatMap;
- QTextCharFormat errorFormat, commentFormat, quoteFormat;
+ QHash<QString, QTextCharFormat> tokenFormats;
+ QTextCharFormat errorFormat, commentFormat, quoteFormat, numberFormat;
Highlighter(QTextDocument *parent);
void highlightBlock(const QString &text);
void highlightError(int error_pos);
contact: Jan Huwald // Impressum