28 #ifndef _BIBLIOTEQ_SQL_SYNTAX_HIGHLIGHTER_
29 #define _BIBLIOTEQ_SQL_SYNTAX_HIGHLIGHTER_
31 #include <QRegularExpression>
32 #include <QSyntaxHighlighter>
33 #include <QTextCharFormat>
41 void setKeywordsColors(
const QMap<QString, QColor> &map);
44 struct HighlightingRule
46 QRegularExpression pattern;
47 QTextCharFormat format;
50 QVector<HighlightingRule> m_highlightingRules;
51 void highlightBlock(
const QString &text);
Definition: biblioteq_sql_syntax_highlighter.h:36