Table Of Contents

Previous topic

SyntaxData

Next topic

SyntaxData

This Page

phoenix_title _python

FILE: python.py AUTHOR: Cody Precord

Summary: Lexer configuration module for Python.


class_hierarchy Inheritance Diagram

Inheritance diagram for module _python

Inheritance diagram of _python


function_summary Functions Summary

AutoIndenter Auto indent python code.
KeywordString Returns the specified Keyword String
PosOpenBracket Returns the position of the right most open bracket in text.

class_summary Classes Summary

SyntaxData SyntaxData object for Python

Functions



AutoIndenter(estc, pos, ichar)

Auto indent python code.

Parameters:
  • estc – EditraStyledTextCtrl
  • pos – current carat position
  • ichar – Indentation character


KeywordString()

Returns the specified Keyword String

Note

not used by most modules



PosOpenBracket(text)

Returns the position of the right most open bracket in text. Brackets inside strings are ignored. In case of no open bracket the returned value is -1

Parameters:text – The line preceding the new line to be indented.
Returns:res: The position of right most open bracket.

Note

Used by AutoIndenter