52 #include <QSyntaxHighlighter>
55 #include <QTextCharFormat>
57 #include <QTextDocument>
72 void highlightBlock(
const QString &text);
81 QTextCharFormat format;
87 QStringList keywordPatterns_;
88 QStringList typePatterns_;
91 QVector<HighlightingRule> highlightingRules_;
94 QRegExp vertexShaderStartExpression_;
95 QRegExp vertexShaderEndExpression_;
97 QRegExp geometryShaderStartExpression_;
98 QRegExp geometryShaderEndExpression_;
100 QRegExp fragmentShaderStartExpression_;
101 QRegExp fragmentShaderEndExpression_;
104 QTextCharFormat keywordFormat_;
105 QTextCharFormat defineFormat_;
106 QTextCharFormat typeFormat_;
108 QTextCharFormat singleLineCommentFormat_;
111 QTextCharFormat vertexShaderFormat_;
112 QTextCharFormat geometryShaderFormat_;
113 QTextCharFormat fragmentShaderFormat_;
void init()
common initializer function called by the constructors
void update()
Updates the highlighter with the current rule set defined in the patterns.