1#ifndef STAMINA_GUI_ADDONS_HIGHLIGHTER_H
2#define STAMINA_GUI_ADDONS_HIGHLIGHTER_H
4#include <QSyntaxHighlighter>
5#include <QRegularExpressionMatchIterator>
6#include <QRegularExpression>
7#include <QTextDocument>
9#include "ColorSchemes.h"
14 namespace highlighter {
21 virtual void setupKeyWordPatterns() = 0;
23 void highlightBlock(
const QString & text)
override;
27 QRegularExpression pattern;
28 QTextCharFormat format;
30 QVector<HighlightingRule> highlightingRules;
32 QRegularExpression commentStartExpression;
33 QRegularExpression commentEndExpression;
35 QTextCharFormat keywordFormat;
36 QTextCharFormat classFormat;
37 QTextCharFormat singleLineCommentFormat;
38 QTextCharFormat multiLineCommentFormat;
39 QTextCharFormat quotationFormat;
40 QTextCharFormat functionFormat;
41 QTextCharFormat numberFormat;
42 QTextCharFormat constFormat;
Definition: Highlighter.h:15
Definition: ExplicitTruncatedModelBuilder.cpp:40
Definition: Highlighter.h:26