69 PythonSyntaxHighlighter(QTextDocument *parent,
const QString &description =
"", QSharedPointer<CodeEditorStyle> editorStyle = QSharedPointer<CodeEditorStyle>());
79 void highlight_block(
const QString &text, QTextBlock &block);
81 void default_highlight_block(
const QString &text,
const TextBlockUserData *textBlockUserData);
83 virtual void rehighlight();
89 NamedRegExp(
const QString &groupName_,
const QRegularExpression ®Exp_) : regExp(regExp_), groupNames(groupName_) {}
90 NamedRegExp(
const QStringList &groupNames_,
const QRegularExpression ®Exp_) : regExp(regExp_), groupNames(groupNames_) {}
91 QRegularExpression regExp;
92 QStringList groupNames;
96 static QList<NamedRegExp> regExpProg;
97 static QRegularExpression regExpIdProg;
98 static QRegularExpression regExpAsProg;
99 static QRegularExpression regExpOeComment;
101 QTextCharFormat getFormatFromStyle(StyleItem::StyleType token)
const;
102 const QTextCharFormat getTextCharFormat(
const QString &colorName,
const QString &style = QString());
104 static QList<NamedRegExp> makePythonPatterns(
const QStringList &additionalKeywords = QStringList(),
const QStringList &additionalBuiltins = QStringList());
Definition textBlockUserData.h:56