diff options
author | Marius Kintel <marius@kintel.net> | 2013-12-29 23:37:29 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-12-29 23:37:29 (GMT) |
commit | bf193472481d3e708da841d59df5f323e2785db7 (patch) | |
tree | ef8c6e33569ffdaed9af524500c7c8ede633c05a /src/highlighter.h | |
parent | 9ea82e746cf4ff4c5c081e82fc0248d4d575ffdb (diff) | |
parent | 81a08c05c2d03aa8791279dfbcf7f9ca826fcf96 (diff) |
Merge pull request #580 from openscad/colorsfix
Colorsfix - 3 options for syntax highlighter
Diffstat (limited to 'src/highlighter.h')
-rw-r--r-- | src/highlighter.h | 3 |
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; |