Go to the documentation of this file.
23 #include <QRegularExpression>
24 #include <QSyntaxHighlighter>
25 #include <QTextCharFormat>
30 using h_type =
enum { MMO_MODEL, MMO_LOG };
35 void addHighlightingRule(
const QString &pattern,
const QTextCharFormat &format,
bool bold =
true);
void setupLogHighlighting()
QVector< MmoHighlightingRule > _highlighting_rules
enum { MMO_MODEL, MMO_LOG } h_type
void addHighlightingRule(const QString &pattern, const QTextCharFormat &format, bool bold=true)
QRegularExpression pattern
QRegularExpression _comment_start_expression
QTextCharFormat _single_line_comment_format
void setupModelHighlighting()
void initialize(h_type file)
void highlightBlock(const QString &text) override
static const QStringList _model_qss_tags
static const QStringList _log_keywords
MmoHighlighter(QTextDocument *parent=nullptr, h_type file=MMO_MODEL)
QRegularExpression _comment_end_expression
void highlightComments(const QString &text)
static const QStringList _model_annotations
void highlightSyntax(const QString &text)
static const QStringList _model_functions
static const QStringList _model_keywords