|
Krita Source Code Documentation
|
Inheritance diagram for scripter.ui_scripter.syntax.syntax.PythonHighlighter:Public Member Functions | |
| __init__ (self, document, syntaxStyle) | |
| getSyntaxStyle (self) | |
| highlightBlock (self, text) | |
| match_multiline (self, text, delimiter, in_state, style) | |
| setSyntaxStyle (self, syntaxStyle) | |
Public Attributes | |
| document | |
| rules | |
| syntaxStyle | |
| tri_double | |
| tri_single | |
Static Public Attributes | |
| list | braces |
| list | keywords |
| list | operators |
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.__init__ | ( | self, | |
| document, | |||
| syntaxStyle ) |
Definition at line 48 of file syntax.py.
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.getSyntaxStyle | ( | self | ) |
Definition at line 157 of file syntax.py.
References scripter.ui_scripter.syntax.syntax.PythonHighlighter.syntaxStyle.
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.highlightBlock | ( | self, | |
| text ) |
Apply syntax highlighting to the given block of text.
Definition at line 98 of file syntax.py.
References KisPipeBrushParasite.dim, KisSpinBoxUnitManager.dim, FlattenSpec.dim, xcfLayer.dim, scripter.ui_scripter.syntax.syntax.PythonHighlighter.match_multiline(), krita.sceditor.highlighter.PythonHighlighter.rules, krita.sceditor.highlighter.QtQmlHighlighter.rules, scripter.ui_scripter.syntax.syntax.PythonHighlighter.rules, KisCompositeProgressProxy.setFormat(), KisNodeProgressProxy.setFormat(), KoFakeProgressProxy.setFormat(), KoProgressBar.setFormat(), KoUpdater.setFormat(), KoProgressProxy.setFormat(), RecorderConfig.setFormat(), scripter.ui_scripter.syntax.syntax.PythonHighlighter.syntaxStyle, scripter.ui_scripter.syntax.syntax.PythonHighlighter.tri_double, and scripter.ui_scripter.syntax.syntax.PythonHighlighter.tri_single.
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.match_multiline | ( | self, | |
| text, | |||
| delimiter, | |||
| in_state, | |||
| style ) |
Do highlighting of multi-line strings. ``delimiter`` should be a ``QRegularExpression`` 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 116 of file syntax.py.
References KisPipeBrushParasite.dim, KisSpinBoxUnitManager.dim, FlattenSpec.dim, xcfLayer.dim, KisCompositeProgressProxy.setFormat(), KisNodeProgressProxy.setFormat(), KoFakeProgressProxy.setFormat(), KoProgressBar.setFormat(), KoUpdater.setFormat(), KoProgressProxy.setFormat(), RecorderConfig.setFormat(), and scripter.ui_scripter.syntax.syntax.PythonHighlighter.syntaxStyle.
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.setSyntaxStyle | ( | self, | |
| syntaxStyle ) |
Definition at line 160 of file syntax.py.
References scripter.ui_scripter.syntax.syntax.PythonHighlighter.syntaxStyle.
|
static |
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.document |
|
static |
|
static |
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.syntaxStyle |
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.tri_double |
| scripter.ui_scripter.syntax.syntax.PythonHighlighter.tri_single |