Developer Documentation

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
PythonSyntaxHighlighter Class Reference

Implementation of highlighting for Python code. More...

`#include <OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.hh>`

Inheritance diagram for PythonSyntaxHighlighter:

## 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

## Detailed Description

Implementation of highlighting for Python code.

Definition at line 50 of file PythonSyntaxHighlighter.hh.

The documentation for this class was generated from the following files:

- OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.hh
- OpenFlipper/widgets/pythonWidget/PythonSyntaxHighlighter.cc