plugins/geshi/geshi/python.php
author Dan
Fri, 29 May 2009 19:30:59 -0400
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
permissions -rwxr-xr-x
Updated GeSHi. w00t.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     1
<?php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     2
/*************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     3
 * python.php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     4
 * ----------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     5
 * Author: Roberto Rossi (rsoftware@altervista.org)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter)
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
     7
 * Release Version: 1.0.8.2
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     8
 * Date Started: 2004/08/30
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     9
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    10
 * Python language file for GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    11
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    12
 * CHANGES
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    13
 * -------
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    14
 * 2008/12/18
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    15
 *  -  Added missing functions and keywords. Also added two new Python 3.0 types. SF#2441839
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    16
 * 2005/05/26
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    17
 *  -  Modifications by Tim (tim@skreak.com): added more keyword categories, tweaked colors
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    18
 * 2004/11/27 (1.0.1)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 *  -  Added support for multiple object splitters
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 * 2004/08/30 (1.0.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    21
 *  -  First Release
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    22
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    23
 * TODO (updated 2004/11/27)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    24
 * -------------------------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    25
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    26
 *************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    27
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    28
 *     This file is part of GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    29
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    30
 *   GeSHi is free software; you can redistribute it and/or modify
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    31
 *   it under the terms of the GNU General Public License as published by
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    32
 *   the Free Software Foundation; either version 2 of the License, or
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    33
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    34
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    35
 *   GeSHi is distributed in the hope that it will be useful,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    36
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    37
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    38
 *   GNU General Public License for more details.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    39
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    40
 *   You should have received a copy of the GNU General Public License
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    42
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    43
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    44
 ************************************************************************************/
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    45
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    46
$language_data = array (
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    47
    'LANG_NAME' => 'Python',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    48
    'COMMENT_SINGLE' => array(1 => '#'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    49
    'COMMENT_MULTI' => array(),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    50
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    51
    //Longest quotemarks ALWAYS first
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    52
    'QUOTEMARKS' => array('"""', '"', "'"),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    53
    'ESCAPE_CHAR' => '\\',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    54
    'KEYWORDS' => array(
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    55
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    56
        /*
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    57
        ** Set 1: reserved words
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    58
        ** http://python.org/doc/current/ref/keywords.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    59
        */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    60
        1 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    61
            'and', 'del', 'for', 'is', 'raise', 'assert', 'elif', 'from', 'lambda', 'return', 'break',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    62
            'else', 'global', 'not', 'try', 'class', 'except', 'if', 'or', 'while', 'continue', 'exec',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    63
            'import', 'pass', 'yield', 'def', 'finally', 'in', 'print', 'with', 'as'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    64
            ),
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    65
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    66
        /*
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    67
        ** Set 2: builtins
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    68
        ** http://python.org/doc/current/lib/built-in-funcs.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    69
        */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    70
        2 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    71
            '__import__', 'abs', 'basestring', 'bool', 'callable', 'chr', 'classmethod', 'cmp',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    72
            'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    73
            'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    74
            'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    75
            'long', 'map', 'max', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    76
            'raw_input', 'reduce', 'reload', 'reversed', 'round', 'set', 'setattr', 'slice',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    77
            'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    78
            'vars', 'xrange', 'zip',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    79
            // Built-in constants: http://python.org/doc/current/lib/node35.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    80
            'False', 'True', 'None', 'NotImplemented', 'Ellipsis',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    81
            // Built-in Exceptions: http://python.org/doc/current/lib/module-exceptions.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    82
            'Exception', 'StandardError', 'ArithmeticError', 'LookupError', 'EnvironmentError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    83
            'AssertionError', 'AttributeError', 'EOFError', 'FloatingPointError', 'IOError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    84
            'ImportError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'MemoryError', 'NameError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    85
            'NotImplementedError', 'OSError', 'OverflowError', 'ReferenceError', 'RuntimeError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    86
            'StopIteration', 'SyntaxError', 'SystemError', 'SystemExit', 'TypeError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    87
            'UnboundlocalError', 'UnicodeError', 'UnicodeEncodeError', 'UnicodeDecodeError',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    88
            'UnicodeTranslateError', 'ValueError', 'WindowsError', 'ZeroDivisionError', 'Warning',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    89
            'UserWarning', 'DeprecationWarning', 'PendingDeprecationWarning', 'SyntaxWarning',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    90
            'RuntimeWarning', 'FutureWarning',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    91
            // self: this is a common python convention (but not a reserved word)
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    92
            'self',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    93
            // other
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    94
            'any', 'all'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    95
            ),
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    96
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    97
        /*
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    98
        ** Set 3: standard library
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    99
        ** http://python.org/doc/current/lib/modindex.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   100
        */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   101
        3 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   102
            '__builtin__', '__future__', '__main__', '_winreg', 'aifc', 'AL', 'al', 'anydbm',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   103
            'array', 'asynchat', 'asyncore', 'atexit', 'audioop', 'base64', 'BaseHTTPServer',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   104
            'Bastion', 'binascii', 'binhex', 'bisect', 'bsddb', 'bz2', 'calendar', 'cd', 'cgi',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   105
            'CGIHTTPServer', 'cgitb', 'chunk', 'cmath', 'cmd', 'code', 'codecs', 'codeop',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   106
            'collections', 'colorsys', 'commands', 'compileall', 'compiler',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   107
            'ConfigParser', 'Cookie', 'cookielib', 'copy', 'copy_reg', 'cPickle', 'crypt',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   108
            'cStringIO', 'csv', 'curses', 'datetime', 'dbhash', 'dbm', 'decimal', 'DEVICE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   109
            'difflib', 'dircache', 'dis', 'distutils', 'dl', 'doctest', 'DocXMLRPCServer', 'dumbdbm',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   110
            'dummy_thread', 'dummy_threading', 'email', 'encodings', 'errno', 'exceptions', 'fcntl',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   111
            'filecmp', 'fileinput', 'FL', 'fl', 'flp', 'fm', 'fnmatch', 'formatter', 'fpectl',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   112
            'fpformat', 'ftplib', 'gc', 'gdbm', 'getopt', 'getpass', 'gettext', 'GL', 'gl', 'glob',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   113
            'gopherlib', 'grp', 'gzip', 'heapq', 'hmac', 'hotshot', 'htmlentitydefs', 'htmllib',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   114
            'HTMLParser', 'httplib', 'imageop', 'imaplib', 'imgfile', 'imghdr', 'imp', 'inspect',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   115
            'itertools', 'jpeg', 'keyword', 'linecache', 'locale', 'logging', 'mailbox', 'mailcap',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   116
            'marshal', 'math', 'md5', 'mhlib', 'mimetools', 'mimetypes', 'MimeWriter', 'mimify',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   117
            'mmap', 'msvcrt', 'multifile', 'mutex', 'netrc', 'new', 'nis', 'nntplib', 'operator',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   118
            'optparse', 'os', 'ossaudiodev', 'parser', 'pdb', 'pickle', 'pickletools', 'pipes',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   119
            'pkgutil', 'platform', 'popen2', 'poplib', 'posix', 'posixfile', 'pprint', 'profile',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   120
            'pstats', 'pty', 'pwd', 'py_compile', 'pyclbr', 'pydoc', 'Queue', 'quopri', 'random',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   121
            're', 'readline', 'repr', 'resource', 'rexec', 'rfc822', 'rgbimg', 'rlcompleter',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   122
            'robotparser', 'sched', 'ScrolledText', 'select', 'sets', 'sgmllib', 'sha', 'shelve',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   123
            'shlex', 'shutil', 'signal', 'SimpleHTTPServer', 'SimpleXMLRPCServer', 'site', 'smtpd',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   124
            'smtplib', 'sndhdr', 'socket', 'SocketServer', 'stat', 'statcache', 'statvfs', 'string',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   125
            'StringIO', 'stringprep', 'struct', 'subprocess', 'sunau', 'SUNAUDIODEV', 'sunaudiodev',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   126
            'symbol', 'sys', 'syslog', 'tabnanny', 'tarfile', 'telnetlib', 'tempfile', 'termios',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   127
            'test', 'textwrap', 'thread', 'threading', 'time', 'timeit', 'Tix', 'Tkinter', 'token',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   128
            'tokenize', 'traceback', 'tty', 'turtle', 'types', 'unicodedata', 'unittest', 'urllib2',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   129
            'urllib', 'urlparse', 'user', 'UserDict', 'UserList', 'UserString', 'uu', 'warnings',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   130
            'wave', 'weakref', 'webbrowser', 'whichdb', 'whrandom', 'winsound', 'xdrlib', 'xml',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   131
            'xmllib', 'xmlrpclib', 'zipfile', 'zipimport', 'zlib',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   132
            // Python 3.0
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   133
            'bytes', 'bytearray'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   134
            ),
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   135
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   136
        /*
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   137
        ** Set 4: special methods
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   138
        ** http://python.org/doc/current/ref/specialnames.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   139
        */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   140
        4 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   141
            /*
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   142
            // Iterator types: http://python.org/doc/current/lib/typeiter.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   143
            '__iter__', 'next',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   144
            // String types: http://python.org/doc/current/lib/string-methods.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   145
            'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   146
            'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   147
            'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   148
            'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   149
            'translate', 'upper', 'zfill',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   150
            */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   151
            // Basic customization: http://python.org/doc/current/ref/customization.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   152
            '__new__', '__init__', '__del__', '__repr__', '__str__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   153
            '__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__cmp__', '__rcmp__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   154
            '__hash__', '__nonzero__', '__unicode__', '__dict__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   155
            // Attribute access: http://python.org/doc/current/ref/attribute-access.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   156
            '__setattr__', '__delattr__', '__getattr__', '__getattribute__', '__get__', '__set__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   157
            '__delete__', '__slots__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   158
            // Class creation, callable objects
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   159
            '__metaclass__', '__call__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   160
            // Container types: http://python.org/doc/current/ref/sequence-types.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   161
            '__len__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__contains__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   162
            '__getslice__', '__setslice__', '__delslice__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   163
            // Numeric types: http://python.org/doc/current/ref/numeric-types.html
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   164
            '__abs__','__add__','__and__','__coerce__','__div__','__divmod__','__float__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   165
            '__hex__','__iadd__','__isub__','__imod__','__idiv__','__ipow__','__iand__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   166
            '__ior__','__ixor__', '__ilshift__','__irshift__','__invert__','__int__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   167
            '__long__','__lshift__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   168
            '__mod__','__mul__','__neg__','__oct__','__or__','__pos__','__pow__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   169
            '__radd__','__rdiv__','__rdivmod__','__rmod__','__rpow__','__rlshift__','__rrshift__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   170
            '__rshift__','__rsub__','__rmul__','__rand__','__rxor__','__ror__',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   171
            '__sub__','__xor__'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   172
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   173
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   174
    'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   175
            '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?', '`'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   176
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   177
    'CASE_SENSITIVE' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   178
        GESHI_COMMENTS => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   179
        1 => true,
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   180
        2 => true,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   181
        3 => true,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   182
        4 => true
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   183
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   184
    'STYLES' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   185
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   186
            1 => 'color: #ff7700;font-weight:bold;',    // Reserved
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   187
            2 => 'color: #008000;',                        // Built-ins + self
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   188
            3 => 'color: #dc143c;',                        // Standard lib
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   189
            4 => 'color: #0000cd;'                        // Special methods
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   190
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   191
        'COMMENTS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   192
            1 => 'color: #808080; font-style: italic;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   193
            'MULTI' => 'color: #808080; font-style: italic;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   194
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   195
        'ESCAPE_CHAR' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   196
            0 => 'color: #000099; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   197
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   198
        'BRACKETS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   199
            0 => 'color: black;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   200
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   201
        'STRINGS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   202
            0 => 'color: #483d8b;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   203
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   204
        'NUMBERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   205
            0 => 'color: #ff4500;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   206
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   207
        'METHODS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   208
            1 => 'color: black;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   209
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   210
        'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   211
            0 => 'color: #66cc66;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   212
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   213
        'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   214
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   215
        'SCRIPT' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   216
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   217
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   218
    'URLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   219
        1 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   220
        2 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   221
        3 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   222
        4 => ''
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   223
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   224
    'OOLANG' => true,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   225
    'OBJECT_SPLITTERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   226
        1 => '.'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   227
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   228
    'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   229
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   230
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   231
    'SCRIPT_DELIMITERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   232
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   233
    'HIGHLIGHT_STRICT_BLOCK' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   234
        )
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   235
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   236
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   237
?>