QtNovelUI/WordsIDE/keywordshightlighter.h

31 lines
610 B
C
Raw Normal View History

2022-11-17 08:26:05 +00:00
#ifndef WORDSHIGHTLIGHTER_H
#define WORDSHIGHTLIGHTER_H
#include <QObject>
#include <QSyntaxHighlighter>
#include <libParse.h>
namespace Enhancement {
/**
* @brief
*/
2022-11-18 05:43:27 +00:00
class KeywordsHightlighter : public QSyntaxHighlighter
2022-11-17 08:26:05 +00:00
{
public:
2022-11-18 05:43:27 +00:00
KeywordsHightlighter(QObject *parent = nullptr);
2022-11-17 08:26:05 +00:00
void reset(Parse::Result::DocCore *base);
private:
Parse::Result::DocCore *parse_core;
// QSyntaxHighlighter interface
protected:
virtual void highlightBlock(const QString &text) override;
};
}
#endif // WORDSHIGHTLIGHTER_H