summaryrefslogtreecommitdiff
path: root/src/highlighter.h
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-12-30 00:06:31 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-12-30 00:06:31 (GMT)
commit275f3baa3de6480d622fa61cc0bf77687ca0d1cf (patch)
treedf826a2eaf854b791805229d7082819aac7811d6 /src/highlighter.h
parent98345828823f1c91860217478858b9943adee9bb (diff)
parentbf193472481d3e708da841d59df5f323e2785db7 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/highlighter.h')
-rw-r--r--src/highlighter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/highlighter.h b/src/highlighter.h
index b4ffae8..10f9b0a 100644
--- a/src/highlighter.h
+++ b/src/highlighter.h
@@ -10,11 +10,12 @@ class Highlighter : public QSyntaxHighlighter
public:
enum state_e {NORMAL=-1,QUOTE,COMMENT};
QHash<QString, QTextCharFormat> tokenFormats;
- QTextCharFormat errorFormat, commentFormat, quoteFormat, numberFormat;
+ QTextCharFormat errorFormat;
Highlighter(QTextDocument *parent);
void highlightBlock(const QString &text);
void highlightError(int error_pos);
void unhighlightLastError();
+ void assignFormatsToTokens(const QString &);
private:
QTextBlock lastErrorBlock;
int errorPos;
contact: Jan Huwald // Impressum