Implementation of highlighting for Python code.
More...
#include <OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.hh>
|
| void | initializeRules () |
| |
| bool | matchMultiline (const QString &text, const QRegularExpression &delimiter, const int inState, const QTextCharFormat &style) |
| | Highlighst multi-line strings, returns true if after processing we are still within the multi-line section.
|
| |
| const QTextCharFormat | getTextCharFormat (const QString &colorName, const QString &style=QString()) |
| |
Implementation of highlighting for Python code.
Definition at line 52 of file PythonSyntaxHighlighter.hh.
◆ PythonSyntaxHighlighter()
| PythonSyntaxHighlighter::PythonSyntaxHighlighter |
( |
QTextDocument * |
parent = 0 | ) |
|
|
explicit |
◆ getTextCharFormat()
| const QTextCharFormat PythonSyntaxHighlighter::getTextCharFormat |
( |
const QString & |
colorName, |
|
|
const QString & |
style = QString() |
|
) |
| |
|
private |
◆ highlightBlock()
| void PythonSyntaxHighlighter::highlightBlock |
( |
const QString & |
text | ) |
|
|
protected |
◆ initializeRules()
| void PythonSyntaxHighlighter::initializeRules |
( |
| ) |
|
|
private |
◆ matchMultiline()
| bool PythonSyntaxHighlighter::matchMultiline |
( |
const QString & |
text, |
|
|
const QRegularExpression & |
delimiter, |
|
|
const int |
inState, |
|
|
const QTextCharFormat & |
style |
|
) |
| |
|
private |
Highlighst multi-line strings, returns true if after processing we are still within the multi-line section.
Definition at line 131 of file PythonSyntaxHighlighter.cc.
◆ basicStyles
| QHash<QString, QTextCharFormat> PythonSyntaxHighlighter::basicStyles |
|
private |
◆ braces
| QStringList PythonSyntaxHighlighter::braces |
|
private |
◆ keywords
| QStringList PythonSyntaxHighlighter::keywords |
|
private |
◆ operators
| QStringList PythonSyntaxHighlighter::operators |
|
private |
◆ rules
◆ triDoubleQuote
| QRegularExpression PythonSyntaxHighlighter::triDoubleQuote |
|
private |
◆ triSingleQuote
| QRegularExpression PythonSyntaxHighlighter::triSingleQuote |
|
private |
The documentation for this class was generated from the following files: