Module Expr Str ImportFrom alias ImportFrom alias alias alias alias FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Str Call NameLoad Str Str Call NameLoad Str ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad Call NameLoad Str Num SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr TupleLoad Call NameLoad Str Num SubscriptLoad NameLoad Index Str Assign NameStore ListLoad AugAssignAdd NameStore ListComp TupleLoad BinOpMod Str NameLoad Num SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp TupleLoad BinOpMod Str NameLoad Num SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore ListComp TupleLoad BinOpMod Str NameLoad Num SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore ListLoad TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str TupleLoad Str Num SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr ListComp TupleLoad Call NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num While CompareGtE NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Num Assign NameStore Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr While CompareGtE NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpSub NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad decorator_list
N/A N/A  Syntax highlighting for Python.

Inspired/copied from by http://diotavelli.net/PyQtWiki/Python%20syntax%20highlighting
 PyQt4.QtCore QRegExp PyQt4.QtGui QColor QFont QSyntaxHighlighter QTextCharFormat createTextFormat N/A N/A color style N/A N/A N/A Return a QTextCharFormat with the given attributes.
     N/A _color N/A QColor N/A N/A N/A _color setNamedColor color N/A _format N/A QTextCharFormat N/A N/A N/A _format setForeground _color N/A N/A bold style N/A N/A N/A N/A _format setFontWeight N/A QFont Bold N/A N/A italic style N/A N/A N/A N/A _format setFontItalic True N/A _format N/A N/A STYLES N/A keyword operator brace defclass string string2 comment self numbers N/A createTextFormat blue N/A createTextFormat red N/A createTextFormat darkGray N/A createTextFormat black bold N/A createTextFormat magenta N/A createTextFormat darkMagenta N/A createTextFormat darkGreen italic N/A createTextFormat black italic N/A createTextFormat brown PythonHighlighter N/A QSyntaxHighlighter N/A N/A  Syntax highlighter for the Python language.
     N/A keywords N/A and assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield None True False N/A operators N/A = == != < <= > >= \+ - \* / // \% \*\* \+= -= \*= /= \%= \^ \| \& \~ >> << N/A braces N/A \{ \} \( \) \[ \] __init__ N/A N/A self document N/A N/A N/A N/A N/A QSyntaxHighlighter __init__ self document N/A N/A self tri_single N/A N/A QRegExp ''' 1 N/A STYLES N/A string2 N/A N/A self tri_double N/A N/A QRegExp """ 2 N/A STYLES N/A string2 N/A rules N/A N/A rules N/A N/A N/A \b%s\b w 0 N/A STYLES N/A keyword N/A w N/A PythonHighlighter keywords N/A rules N/A N/A N/A %s o 0 N/A STYLES N/A operator N/A o N/A PythonHighlighter operators N/A rules N/A N/A N/A %s b 0 N/A STYLES N/A brace N/A b N/A PythonHighlighter braces N/A rules N/A N/A \bself\b 0 N/A STYLES N/A self N/A "[^"\\]*(\\.[^"\\]*)*" 0 N/A STYLES N/A string N/A '[^'\\]*(\\.[^'\\]*)*' 0 N/A STYLES N/A string N/A \bdef\b\s*(\w+) 1 N/A STYLES N/A defclass N/A \bclass\b\s*(\w+) 1 N/A STYLES N/A defclass N/A #[^\n]* 0 N/A STYLES N/A comment N/A \b[+-]?[0-9]+[lL]?\b 0 N/A STYLES N/A numbers N/A \b[+-]?0[xX][0-9A-Fa-f]+[lL]?\b 0 N/A STYLES N/A numbers N/A \b[+-]?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\b 0 N/A STYLES N/A numbers N/A N/A self rules N/A N/A N/A QRegExp pat index fmt N/A N/A pat index fmt rules N/A highlightBlock N/A N/A self text N/A N/A N/A Apply syntax highlighting to the given block of text.
         N/A N/A expression nth display_format N/A self rules N/A N/A index N/A N/A expression indexIn text 0 N/A N/A index 0 N/A N/A index N/A N/A expression pos nth N/A length N/A N/A N/A N/A expression cap nth length N/A N/A N/A self setFormat index length display_format N/A index N/A N/A expression indexIn text N/A index length N/A N/A N/A self setCurrentBlockState 0 N/A in_multiline N/A N/A self match_multiline text N/A self tri_single N/A N/A in_multiline N/A N/A in_multiline N/A N/A self match_multiline text N/A self tri_double N/A match_multiline N/A N/A self text delimiter in_state style N/A N/A N/A 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.
         N/A N/A N/A N/A self previousBlockState in_state N/A N/A start 0 N/A add 0 N/A N/A start N/A N/A delimiter indexIn text N/A add N/A N/A delimiter matchedLength N/A N/A start 0 N/A N/A end N/A N/A delimiter indexIn text N/A start add N/A N/A end add N/A N/A length N/A N/A N/A end start add N/A N/A delimiter matchedLength N/A N/A N/A self setCurrentBlockState 0 N/A N/A N/A N/A self setCurrentBlockState in_state N/A length N/A N/A N/A N/A text length start add N/A N/A N/A self setFormat start length style N/A start N/A N/A delimiter indexIn text N/A start length N/A N/A N/A N/A self currentBlockState in_state N/A N/A True N/A N/A False N/A N/A addPythonHighlighter N/A N/A document N/A N/A N/A N/A PythonHighlighter document N/A