10 #include <QSyntaxHighlighter>
47 struct HighlightingRule
54 HighlightingRule() =
default;
56 HighlightingRule(
const CodeElement e,
const QString &p,
const int i)
64 void highlightPythonBlock(
const QString &text);
66 bool matchMultiLine(
const QString &text,
const HighlightingRule &rule);
68 QVector<HighlightingRule> m_highlightingRules;
69 HighlightingRule m_triSingle;
70 HighlightingRule m_triDouble;
filament::Texture::InternalFormat format
QRegularExpression qtCompatRegExp(const QString &pattern)
QRegularExpression QtCompatRegExp
ColorScheme to be used by the PythonHighlighter & Editor.
static QString CodeElementName(PythonHighlighter::CodeElement e)
void highlightBlock(const QString &text) override
PythonHighlighter(QTextDocument *parent=nullptr)
void useColorScheme(const ColorScheme &colorScheme)