16#ifndef QGSEXPRESSIONHIGHLIGHTER_H
17#define QGSEXPRESSIONHIGHLIGHTER_H
19#include <QSyntaxHighlighter>
22#include <QTextCharFormat>
24#include <QRegularExpression>
39 void addFields(
const QStringList &fieldList );
42 void highlightBlock(
const QString &text )
override;
45 struct HighlightingRule
47 QRegularExpression pattern;
48 QTextCharFormat format;
50 QVector<HighlightingRule> highlightingRules;
52 QTextCharFormat columnNameFormat;
53 QTextCharFormat keywordFormat;
54 QTextCharFormat quotationFormat;
55 QTextCharFormat functionFormat;