mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 17:10:44 +08:00
24 lines
632 B
C++
24 lines
632 B
C++
#pragma once
|
|
|
|
#include <QtGui/QSyntaxHighlighter>
|
|
#include <QtGui/QTextDocument>
|
|
#include <QtGui/QTextCharFormat>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QRegularExpression>
|
|
#include <QtCore/QVector>
|
|
|
|
class SeerCxxSourceHighlighter : public QSyntaxHighlighter {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SeerCxxSourceHighlighter (QTextDocument* parent = 0);
|
|
|
|
protected:
|
|
void highlightBlock (const QString& text) override;
|
|
int highlight (const QString& text, int state);
|
|
|
|
static bool isCppKeyword (const QString& word);
|
|
};
|
|
|