Implementation of highlighting for Python code.
Definition at line 61 of file PythonSyntaxHighlighter.h.
|
QTextCharFormat | getTextCharFormat (const QString &colorName, const QString &style="") |
|
void | initializeRules () |
|
bool | matchMultiline (const QString &text, const QRegExp &delimiter, int inState, const QTextCharFormat &style) |
| Highlighst multi-line strings, returns true if after processing we are still within the. More...
|
|
◆ PythonSyntaxHighlighter()
PythonSyntaxHighlighter::PythonSyntaxHighlighter |
( |
QTextDocument * |
parent = nullptr | ) |
|
◆ getTextCharFormat()
QTextCharFormat PythonSyntaxHighlighter::getTextCharFormat |
( |
const QString & |
colorName, |
|
|
const QString & |
style = "" |
|
) |
| |
|
private |
◆ highlightBlock()
void PythonSyntaxHighlighter::highlightBlock |
( |
const QString & |
text | ) |
|
|
overrideprotected |
◆ initializeRules()
void PythonSyntaxHighlighter::initializeRules |
( |
| ) |
|
|
private |
◆ matchMultiline()
bool PythonSyntaxHighlighter::matchMultiline |
( |
const QString & |
text, |
|
|
const QRegExp & |
delimiter, |
|
|
int |
inState, |
|
|
const QTextCharFormat & |
style |
|
) |
| |
|
private |
Highlighst multi-line strings, returns true if after processing we are still within the.
◆ basicStyles
QHash<QString, QTextCharFormat> PythonSyntaxHighlighter::basicStyles |
|
private |
◆ braces
QStringList PythonSyntaxHighlighter::braces |
|
private |
◆ keywords
QStringList PythonSyntaxHighlighter::keywords |
|
private |
◆ operators
QStringList PythonSyntaxHighlighter::operators |
|
private |
◆ rules
◆ triDoubleQuote
QRegExp PythonSyntaxHighlighter::triDoubleQuote |
|
private |
◆ triSingleQuote
QRegExp PythonSyntaxHighlighter::triSingleQuote |
|
private |
The documentation for this class was generated from the following files: