#ifndef HIGHLIGHTER_RUMBLE_H #define HIGHLIGHTER_RUMBLE_H #include #include class Highlighter_Rumble : public QSyntaxHighlighter { Q_OBJECT public: Highlighter_Rumble(QTextDocument *parent = nullptr); protected: void highlightBlock(const QString &text) override; private: struct HighlightingRule { QRegularExpression pattern; QTextCharFormat format; }; QVector highlightingRules; QTextCharFormat headerFormat; QTextCharFormat countFormat; QTextCharFormat floatPairFormat; }; #endif // HIGHLIGHTER_RUMBLE_H