#TITLE=Python ; Original notice: ; EditPlus Syntax File v1.2 adapted by A. Tsorlinis ; ; New notice: ; Adapted for Python 2.5 by Adam Vandenberg ; http://adamv.com/ ; 8 Jan 2006 ; Version: 2.0 ; ; Notes: ; The "Block Comment" option is used for Python's triple-quote strings, ; but ONLY for triple double-quoted strings. EditPlus doesn't provide enough ; support to color code triple single-quoted strings as well. ; ; Keywords 1: Statements, operators, and built-in names (True, False, None). ; Keywords 2: Special method and attribute names like "__init__". ; Keywords 3: Standard Exceptions ; Keywords 4: Standard types and built-in functions ; ; The remaining keywords block is available for customization. #DELIMITER=,(){}[]-+*%/="'~!&|\<>?:;.# #QUOTATION1=' #QUOTATION2=" #CONTINUE_QUOTE=n #LINECOMMENT=# #LINECOMMENT2= #COMMENTON=""" #COMMENTOFF=""" #COMMENTON2= #COMMENTOFF2= #ESCAPE=\ #CASE=y #PREFIX1= #PREFIX2= #PREFIX3= #PREFIX4= #PREFIX5= #SUFFIX1= #SUFFIX2= #SUFFIX3= #SUFFIX4= #SUFFIX5= ; Statements, operators, and built-in names #KEYWORD and assert break class continue def del elif else except exec finally for from global if import in is lambda len not or pass print raise return self try while None True False ; Special method and attribute names #KEYWORD __new__ __init__ __del__ __repr__ __str__ __lt__ __ge__ __eq__ __ne__ __gt__ __ge__ __cmp__ __hash__ __nonzero__ __unicode__ __getattr__ __setattr__ __delattr__ __getattribute__ __get__ __set__ __delete__ __slots__ __weakref__ __dict__ __metaclass__ __call__ __len__ __getitem__ __setitem__ __delitem__ __iter__ __contains__ __getslice__ __setslice__ __delslice__ __coerce__ __class__ __bases__ __name__ ; Built-in exceptions #KEYWORD Exception SystemExit StopIteration StandardError KeyboardInterrupt ImportError EnvironmentError IOError OSError WindowsError EOFError RuntimeError NotImplementedError NameError UnboundLocalError AttributeError SyntaxError IndentationError TabError TypeError AssertionError LookupError IndexError KeyError ArithmeticError OverflowError ZeroDivisionError FloatingPointError ValueError UnicodeError UnicodeEncodeError UnicodeDecodeError UnicodeTranslateError ReferenceError SystemError MemoryError Warning UserWarning DeprecationWarning PendingDeprecationWarning SyntaxWarning OverflowWarning RuntimeWarning FutureWarning ; Built-in types and functions #KEYWORD __import__ abs basestring bool callable chr classmethod cmp compile complex delattr dict dir divmod enumerate eval execfile file filter float frozenset getattr globals hasattr hash help hex input int isinstance issubclass iter len list locals long map max min object oct open ord pow property range raw_input reduce reload repr reversed round set setattr slice sorted staticmethod str sum super tuple type unichr unicode vars xrange zip