24 #ifndef DIGIKAM_HIGH_LIGHTER_H
25 #define DIGIKAM_HIGH_LIGHTER_H
29 #include <QSyntaxHighlighter>
30 #include <QRegularExpression>
58 void setupHighlightingGrammar();
70 struct HighlightingRule
73 QRegularExpression pattern;
74 QTextCharFormat format;
79 QVector<HighlightingRule> highlightingRules;
80 HighlightingRule quotationRule;
82 QTextCharFormat optionFormat;
83 QTextCharFormat parameterFormat;
84 QTextCharFormat modifierFormat;
85 QTextCharFormat quotationFormat;
86 QTextCharFormat errorFormat;
Definition: highlighter.h:40
void highlightBlock(const QString &text) override
Definition: highlighter.cpp:49
Highlighter(QTextDocument *const document, Parser *const _parser)
Definition: highlighter.cpp:37
~Highlighter() override
Definition: highlighter.cpp:45
Definition: datefolderview.cpp:43