Public Member Functions | Public Attributes | Static Public Attributes | List of all members
rqt_dyn_tune.syntax.PythonHighlighter Class Reference
Inheritance diagram for rqt_dyn_tune.syntax.PythonHighlighter:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, document, is_dark=False, default=None)
 
def highlightBlock (self, text)
 
def match_multiline (self, text, delimiter, in_state, style)
 

Public Attributes

 default
 
 is_dark
 
 rules
 
 tri_double
 
 tri_single
 

Static Public Attributes

list braces
 
list defaults
 
list keywords
 
list operators
 

Detailed Description

Syntax highlighter for the Python language.

Definition at line 57 of file syntax.py.

Constructor & Destructor Documentation

def rqt_dyn_tune.syntax.PythonHighlighter.__init__ (   self,
  document,
  is_dark = False,
  default = None 
)

Definition at line 93 of file syntax.py.

Member Function Documentation

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.

Member Data Documentation

list rqt_dyn_tune.syntax.PythonHighlighter.braces
static
Initial value:
1 = [
2  '\{', '\}', '\(', '\)', '\[', '\]',
3  ]

Definition at line 90 of file syntax.py.

rqt_dyn_tune.syntax.PythonHighlighter.default

Definition at line 102 of file syntax.py.

list rqt_dyn_tune.syntax.PythonHighlighter.defaults
static
Initial value:
1 = [
2  ':', '\.'
3  ]

Definition at line 62 of file syntax.py.

rqt_dyn_tune.syntax.PythonHighlighter.is_dark

Definition at line 101 of file syntax.py.

list rqt_dyn_tune.syntax.PythonHighlighter.keywords
static
Initial value:
1 = [
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'
8  ]

Definition at line 67 of file syntax.py.

list rqt_dyn_tune.syntax.PythonHighlighter.operators
static
Initial value:
1 = [
2  '=',
3  # Comparison
4  '==', '!=', '<', '<=', '>', '>=',
5  # Arithmetic
6  '\+', '-', '\*', '/', '//', '\%', '\*\*',
7  # In-place
8  '\+=', '-=', '\*=', '/=', '\%=',
9  # Bitwise
10  '\^', '\|', '\&', '\~', '>>', '<<',
11  ]

Definition at line 77 of file syntax.py.

rqt_dyn_tune.syntax.PythonHighlighter.rules

Definition at line 157 of file syntax.py.

rqt_dyn_tune.syntax.PythonHighlighter.tri_double

Definition at line 118 of file syntax.py.

rqt_dyn_tune.syntax.PythonHighlighter.tri_single

Definition at line 117 of file syntax.py.


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


rqt_dyn_tune
Author(s):
autogenerated on Mon Jun 10 2019 14:52:09