Syntax highlighter for the Python language.
Definition at line 57 of file syntax.py.
def rqt_dyn_tune.syntax.PythonHighlighter.__init__ |
( |
|
self, |
|
|
|
document, |
|
|
|
is_dark = False , |
|
|
|
default = None |
|
) |
| |
def rqt_dyn_tune.syntax.PythonHighlighter.highlightBlock |
( |
|
self, |
|
|
|
text |
|
) |
| |
Apply syntax highlighting to the given block of text.
Definition at line 162 of file syntax.py.
def rqt_dyn_tune.syntax.PythonHighlighter.match_multiline |
( |
|
self, |
|
|
|
text, |
|
|
|
delimiter, |
|
|
|
in_state, |
|
|
|
style |
|
) |
| |
Do highlighting of multi-line strings. ``delimiter`` should be a
``QRegExp`` for triple-single-quotes or triple-double-quotes, and
``in_state`` should be a unique integer to represent the corresponding
state changes when inside those strings. Returns True if we're still
inside a multi-line string when this function is finished.
Definition at line 200 of file syntax.py.
list rqt_dyn_tune.syntax.PythonHighlighter.braces |
|
static |
Initial value: 2 '\{',
'\}',
'\(',
'\)',
'\[',
'\]',
Definition at line 90 of file syntax.py.
rqt_dyn_tune.syntax.PythonHighlighter.default |
list rqt_dyn_tune.syntax.PythonHighlighter.defaults |
|
static |
Initial value:
Definition at line 62 of file syntax.py.
rqt_dyn_tune.syntax.PythonHighlighter.is_dark |
list rqt_dyn_tune.syntax.PythonHighlighter.keywords |
|
static |
Initial value: 2 'and',
'assert',
'break',
'class',
'continue',
'def',
3 'del',
'elif',
'else',
'except',
'exec',
'finally',
4 'for',
'from',
'global',
'if',
'import',
'in',
5 'is',
'lambda',
'not',
'or',
'pass',
'print',
6 'raise',
'return',
'try',
'while',
'yield',
7 'None',
'True',
'False',
'str',
'as'
Definition at line 67 of file syntax.py.
list rqt_dyn_tune.syntax.PythonHighlighter.operators |
|
static |
Initial value: 4 '==',
'!=',
'<',
'<=',
'>',
'>=',
6 '\+',
'-',
'\*',
'/',
'//',
'\%',
'\*\*',
8 '\+=',
'-=',
'\*=',
'/=',
'\%=',
10 '\^',
'\|',
'\&',
'\~',
'>>',
'<<',
Definition at line 77 of file syntax.py.
rqt_dyn_tune.syntax.PythonHighlighter.rules |
rqt_dyn_tune.syntax.PythonHighlighter.tri_double |
rqt_dyn_tune.syntax.PythonHighlighter.tri_single |
The documentation for this class was generated from the following file: