StelScriptSyntaxHighlighter.hpp   StelScriptSyntaxHighlighter.hpp 
skipping to change at line 37 skipping to change at line 37
#include <QTextCharFormat> #include <QTextCharFormat>
class QTextDocument; class QTextDocument;
class StelScriptSyntaxHighlighter : public QSyntaxHighlighter class StelScriptSyntaxHighlighter : public QSyntaxHighlighter
{ {
Q_OBJECT Q_OBJECT
public: public:
StelScriptSyntaxHighlighter(QTextDocument* parent=0); StelScriptSyntaxHighlighter(QTextDocument* parent=0);
void setFormats(void);
protected: protected:
void highlightBlock(const QString &text); void highlightBlock(const QString &text);
private: private:
struct HighlightingRule struct HighlightingRule
{ {
QRegExp pattern; QRegExp pattern;
QTextCharFormat format; QTextCharFormat* format;
}; };
QVector<HighlightingRule> highlightingRules; QVector<HighlightingRule> highlightingRules;
QTextCharFormat keywordFormat; QTextCharFormat keywordFormat;
QTextCharFormat moduleFormat; QTextCharFormat moduleFormat;
QTextCharFormat singleLineCommentFormat; QTextCharFormat commentFormat;
QTextCharFormat quotationFormat; QTextCharFormat constantFormat;
QTextCharFormat functionFormat; QTextCharFormat functionFormat;
}; };
#endif // _STELSCRIPTSYNTAXHIGHLIGHTER_HPP_ #endif // _STELSCRIPTSYNTAXHIGHLIGHTER_HPP_
 End of changes. 3 change blocks. 
3 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/