dolphin/Source/Core/DolphinQt/Config/GameConfigHighlighter.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
551 B
C
Raw Normal View History

2018-07-13 10:56:58 +00:00
// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <vector>
#include <QRegularExpression>
#include <QSyntaxHighlighter>
#include <QTextCharFormat>
struct HighlightingRule;
class GameConfigHighlighter : public QSyntaxHighlighter
{
Q_OBJECT
public:
explicit GameConfigHighlighter(QTextDocument* parent = nullptr);
~GameConfigHighlighter();
protected:
void highlightBlock(const QString& text) override;
private:
std::vector<HighlightingRule> m_rules;
};