BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implementation of highlighting for Python code. More...
Public Member Functions | |
PythonSyntaxHighlighter (QTextDocument *parent=0) | |
Protected Member Functions | |
void | highlightBlock (const QString &text) |
Private Member Functions | |
const QTextCharFormat | getTextCharFormat (const QString &colorName, const QString &style="") |
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. More... | |
Private Attributes | |
QHash< QString, QTextCharFormat > | basicStyles |
QStringList | braces |
QStringList | keywords |
QStringList | operators |
QList< HighlightingRule > | rules |
QRegExp | triDoubleQuote |
QRegExp | triSingleQuote |
Implementation of highlighting for Python code.
Definition at line 61 of file PythonSyntaxHighlighter.h.
PythonSyntaxHighlighter::PythonSyntaxHighlighter | ( | QTextDocument * | parent = 0 | ) |
Definition at line 40 of file PythonSyntaxHighlighter.cpp.
References basicStyles, braces, getTextCharFormat(), initializeRules(), keywords, operators, triDoubleQuote, and triSingleQuote.
|
private |
Definition at line 238 of file PythonSyntaxHighlighter.cpp.
Referenced by PythonSyntaxHighlighter().
|
protected |
Definition at line 175 of file PythonSyntaxHighlighter.cpp.
References basicStyles, matchMultiline(), rules, triDoubleQuote, and triSingleQuote.
|
private |
Definition at line 129 of file PythonSyntaxHighlighter.cpp.
References basicStyles, braces, keywords, operators, and rules.
Referenced by PythonSyntaxHighlighter().
|
private |
Highlighst multi-line strings, returns true if after processing we are still within the.
Definition at line 194 of file PythonSyntaxHighlighter.cpp.
Referenced by highlightBlock().
|
private |
Definition at line 74 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), highlightBlock(), and initializeRules().
|
private |
Definition at line 72 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), and initializeRules().
|
private |
Definition at line 70 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), and initializeRules().
|
private |
Definition at line 71 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), and initializeRules().
|
private |
Definition at line 84 of file PythonSyntaxHighlighter.h.
Referenced by highlightBlock(), and initializeRules().
|
private |
Definition at line 86 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), and highlightBlock().
|
private |
Definition at line 85 of file PythonSyntaxHighlighter.h.
Referenced by PythonSyntaxHighlighter(), and highlightBlock().