53 #include <QSyntaxHighlighter>
56 #include <QTextCharFormat>
57 #include <QTextDocument>
71 QStringList keywordPatterns_;
72 QStringList pluginPatterns_;
73 QStringList functionPatterns_;
74 QStringList typePatterns_;
78 void highlightBlock(
const QString &text);
87 QTextCharFormat format;
90 QVector<HighlightingRule> highlightingRules_;
92 QRegExp commentStartExpression_;
93 QRegExp commentEndExpression_;
95 QTextCharFormat keywordFormat_;
96 QTextCharFormat pluginFormat_;
97 QTextCharFormat functionFormat_;
98 QTextCharFormat typeFormat_;
101 QTextCharFormat singleLineCommentFormat_;
102 QTextCharFormat multiLineCommentFormat_;
103 QTextCharFormat quotationFormat_;
104 QTextCharFormat listFormat_;
void init()
common initializer function called by the constructors
void update()
Updates the highlighter with the current rule set defined in the patterns.