39 #include <QtGui/QSyntaxHighlighter>
40 #include <QRegularExpression>
48 void addTag(
const QString& tag,
const QTextCharFormat& format,
const QString& parent = QString());
56 QRegularExpression
start;
57 QRegularExpression
end;
59 std::map<int, Rule>::const_iterator
parent;
61 using Rules = std::map<int, Rule>;
64 #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
65 Rules::const_iterator
highlight(Rules::const_iterator active, QStringView
text,
int start,
bool search_end,
int& end);
67 Rules::const_iterator
highlight(Rules::const_iterator active, QStringRef
text,
int start,
bool search_end,
int& end);