; PythonV2.4.syn ; TextPad syntax definition file for Python version 2.4 ; Copyright (C) 1998-2000, Helios Software Solutions ; Noah Spurrier ; ; Updated for Python 2.2 by Jim Jinkins on 12/20/2001 ; Updated for Python 2.3 by Jim Jinkins < jjinkins _at- comports -dot_ com > ; on 05/07/2003 ; Updated for Python 2.3 by Jim Jinkins ; < jim _dot- jinkins _at- comports -dot_ com > ; on 01/25/2005 ; Please inform Jim Jinkins about errors or omissions at the address above. ; ; Note that the symbol lists have been expanded and are not all under the ; same [Keywords n] numbers as in versions earlier than 2.3. The symbol lists ; are now labeled, so they can easily be reordered or omitted. ; ; Note that """triple-quotes""" are encoded as Comment syntax. ; This is not strictly correct, but it serves the purpose of ; coloring a multi-line string in Python. ; ;-)PYTHON=1 C=1 [Syntax] Namespace1 = 6 IgnoreCase = No KeyWordLength = BracketChars = {[()]} ;;;;;;;; Operator and then Delimiter characters ;;;; @ is first delimiter char OperatorChars = -+*/<>!~%^&|=@`.:,; PreprocStart = SyntaxStart = SyntaxEnd = HexPrefix = 0x CommentStart = """ CommentEnd = """ CommentStartAlt = ''' CommentEndAlt = ''' SingleComment = # SingleCommentCol = SingleCommentAlt = SingleCommentColAlt = SingleCommentEsc = StringsSpanLines = Yes StringStart = " StringEnd = " StringAlt = ' StringEsc = \ CharStart = ' CharEnd = ' CharEsc = \ [Keywords 1] ;;;;;;;; Keywords ;;;; 29 symbols ;;;;;;;; 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 yield [Keywords 2] ;;;;;;;; Builtin exception classes ;;;; 41 symbols ;;;;;;;; ArithmeticError AssertionError AttributeError DeprecationWarning EOFError EnvironmentError Exception FloatingPointError FutureWarning IOError ImportError IndentationError IndexError KeyError KeyboardInterrupt LookupError MemoryError NameError NotImplementedError OSError OverflowError OverflowWarning PendingDeprecationWarning ReferenceError RuntimeError RuntimeWarning StandardError StopIteration SyntaxError SyntaxWarning SystemError SystemExit TabError TypeError UnboundLocalError UnicodeError UserWarning ValueError Warning WindowsError ZeroDivisionError ;;;;;; Other Builtin names - Functions and other objects ;;; 86 symbols ;;;;;; Ellipsis False None NotImplemented True UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError __debug__ __import__ abs apply basestring bool buffer callable chr classmethod cmp coerce compile complex copyright credits delattr dict dir divmod enumerate eval execfile exit file filter float frozenset getattr globals hasattr hash help hex id input int intern isinstance issubclass iter len license list locals long map max min object oct open ord pow property quit range raw_input reduce reload repr reversed round set setattr slice sorted staticmethod str sum super tuple type unichr unicode vars xrange zip [Keywords 3] ;;;;;;;; Special attributes of types and object ;;;; 14 symbols ;;;;;;;; __base__ __bases__ __basicsize__ __class__ __dict__ __dictoffset__ __doc__ __flags__ __itemsize__ __module__ __mro__ __name__ __self__ __weakrefoffset__ [Keywords 4] ;;;;;; Special methods of types and object ;;; 85 symbols ;;;;;; __abs__ __add__ __and__ __call__ __cmp__ __coerce__ __complex__ __contains__ __del__ __delattr__ __delitem__ __delslice__ __div__ __divmod__ __eq__ __float__ __floordiv__ __ge__ __get__ __getattribute__ __getitem__ __getnewargs__ __getslice__ __gt__ __hash__ __hex__ __iadd__ __iand__ __idiv__ __ifloordiv__ __ilshift__ __imod__ __imul__ __init__ __int__ __invert__ __ior__ __ipow__ __irshift__ __isub__ __iter__ __itruediv__ __ixor__ __le__ __len__ __long__ __lshift__ __lt__ __mod__ __mul__ __ne__ __neg__ __new__ __nonzero__ __oct__ __or__ __pos__ __pow__ __radd__ __rand__ __rdiv__ __rdivmod__ __reduce__ __reduce_ex__ __repr__ __reversed__ __rfloordiv__ __rlshift__ __rmod__ __rmul__ __ror__ __rpow__ __rrshift__ __rshift__ __rsub__ __rtruediv__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub__ __subclasses__ __truediv__ __xor__ [Keywords 5] ;;;;;; Other methods of types and object ;;; 76 symbols ;;;;;; append capitalize center clear close conjugate copy count decode encode endswith expandtabs extend fileno find flush fromkeys get has_key index indices insert isalnum isalpha isatty isdecimal isdigit islower isnumeric isspace istitle isupper items iteritems iterkeys itervalues join keys ljust lower lstrip mro next pop popitem read readinto readline readlines remove replace reverse rfind rindex rjust rsplit rstrip seek setdefault sort split splitlines startswith strip swapcase tell title translate truncate update upper values write writelines xreadlines zfill ;;;;;; Other attributes of types and object ;;; 49 symbols ;;;;;; closed co_argcount co_cellvars co_code co_consts co_filename co_firstlineno co_flags co_freevars co_lnotab co_name co_names co_nlocals co_stacksize co_varnames encoding f_back f_builtins f_code f_exc_traceback f_exc_type f_exc_value f_globals f_lasti f_lineno f_locals f_restricted f_trace func_closure func_code func_defaults func_dict func_doc func_globals func_name gi_frame gi_running im_class im_func im_self imag mode name newlines real softspace start step stop [Keywords 6] ;;;;;;;; Type names ;;;; 37 symbols ;;;;;;;; BooleanType BufferType BuiltinFunctionType BuiltinMethodType ClassType CodeType ComplexType DictProxyType DictType DictionaryType EllipsisType FileType FloatType FrameType FunctionType GeneratorType InstanceType IntType LambdaType ListType LongType MethodType ModuleType NoneType NotImplementedType ObjectType SliceType StringType StringTypes TracebackType TupleType TypeType UnboundMethodType UnicodeType XRangeType __builtins__ __file__