Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes

PythonSyntaxHighlighter Class Reference

#include <PythonSyntaxHighlighter.h>

Inheritance diagram for PythonSyntaxHighlighter:
SyntaxHighlighter

List of all members.

Public Member Functions

 PythonSyntaxHighlighter (ScriptEdit *parent)

Static Public Member Functions

static QStringList keywordsList ()

Protected Member Functions

void highlightBlock (const QString &text)
 Parentheses matching code taken from Qt Quarterly Issue 31 · Q3 2009.

Private Attributes

QTextCharFormat classFormat
QTextCharFormat keywordFormat
QVector< HighlightingRulepythonHighlightingRules

Static Private Attributes

static const QStringList d_keywords = "while"

Constructor & Destructor Documentation


Member Function Documentation

void PythonSyntaxHighlighter::highlightBlock ( const QString &  text  )  [protected]

Parentheses matching code taken from Qt Quarterly Issue 31 · Q3 2009.

Reimplemented from SyntaxHighlighter.

References SyntaxHighlighter::commentFormat, SyntaxHighlighter::HighlightingRule::format, SyntaxHighlighter::HighlightingRule::pattern, and pythonHighlightingRules.

static QStringList PythonSyntaxHighlighter::keywordsList (  )  [inline, static]

Member Data Documentation

QTextCharFormat PythonSyntaxHighlighter::classFormat [private]

Referenced by PythonSyntaxHighlighter().

const QStringList PythonSyntaxHighlighter::d_keywords = "while" [static, private]
QTextCharFormat PythonSyntaxHighlighter::keywordFormat [private]

Referenced by PythonSyntaxHighlighter().


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