Developer Documentation
|
Implementation of highlighting for Python code. More...
#include <OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.hh>
Public Member Functions | |
PythonSyntaxHighlighter (QTextDocument *parent=0) | |
Protected Member Functions | |
void | highlightBlock (const QString &text) |
Private Member Functions | |
void | initializeRules () |
bool | matchMultiline (const QString &text, const QRegExp &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()) |
Private Attributes | |
QStringList | keywords |
QStringList | operators |
QStringList | braces |
QHash< QString, QTextCharFormat > | basicStyles |
QList< HighlightingRule > | rules |
QRegExp | triSingleQuote |
QRegExp | triDoubleQuote |
Implementation of highlighting for Python code.
Definition at line 50 of file PythonSyntaxHighlighter.hh.