00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 $language_data = array (
00047 'LANG_NAME' => 'Perl',
00048 'COMMENT_SINGLE' => array(1 => '#'),
00049 'COMMENT_MULTI' => array( '=pod' => '=cut'),
00050 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00051 'QUOTEMARKS' => array('"'),
00052 'HARDQUOTE' => array("'", "'"),
00053 'HARDESCAPE' => array('\\\'', "\\\\"),
00054
00055
00056
00057 'ESCAPE_CHAR' => '\\',
00058 'KEYWORDS' => array(
00059 1 => array(
00060 'case', 'do', 'else', 'elsif', 'for', 'if', 'then', 'until', 'while', 'foreach', 'my',
00061 'or', 'and', 'unless', 'next', 'last', 'redo', 'not', 'our',
00062 'reset', 'continue','and', 'cmp', 'ne'
00063 ),
00064 2 => array(
00065 'use', 'sub', 'new', '__END__', '__DATA__', '__DIE__', '__WARN__', 'BEGIN',
00066 'STDIN', 'STDOUT', 'STDERR'
00067 ),
00068 3 => array(
00069 'abs', 'accept', 'alarm', 'atan2', 'bind', 'binmode', 'bless',
00070 'caller', 'chdir', 'chmod', 'chomp', 'chop', 'chown', 'chr',
00071 'chroot', 'close', 'closedir', 'connect', 'continue', 'cos',
00072 'crypt', 'dbmclose', 'dbmopen', 'defined', 'delete', 'die',
00073 'dump', 'each', 'endgrent', 'endhostent', 'endnetent', 'endprotoent',
00074 'endpwent', 'endservent', 'eof', 'eval', 'exec', 'exists', 'exit',
00075 'exp', 'fcntl', 'fileno', 'flock', 'fork', 'format', 'formline',
00076 'getc', 'getgrent', 'getgrgid', 'getgrnam', 'gethostbyaddr',
00077 'gethostbyname', 'gethostent', 'getlogin', 'getnetbyaddr', 'getnetbyname',
00078 'getnetent', 'getpeername', 'getpgrp', 'getppid', 'getpriority',
00079 'getprotobyname', 'getprotobynumber', 'getprotoent', 'getpwent',
00080 'getpwnam', 'getpwuid', 'getservbyname', 'getservbyport', 'getservent',
00081 'getsockname', 'getsockopt', 'glob', 'gmtime', 'goto', 'grep',
00082 'hex', 'import', 'index', 'int', 'ioctl', 'join', 'keys', 'kill',
00083 'last', 'lc', 'lcfirst', 'length', 'link', 'listen', 'local',
00084 'localtime', 'log', 'lstat', 'm', 'map', 'mkdir', 'msgctl', 'msgget',
00085 'msgrcv', 'msgsnd', 'my', 'next', 'no', 'oct', 'open', 'opendir',
00086 'ord', 'our', 'pack', 'package', 'pipe', 'pop', 'pos', 'print',
00087 'printf', 'prototype', 'push', 'qq', 'qr', 'quotemeta', 'qw',
00088 'qx', 'q', 'rand', 'read', 'readdir', 'readline', 'readlink', 'readpipe',
00089 'recv', 'redo', 'ref', 'rename', 'require', 'return',
00090 'reverse', 'rewinddir', 'rindex', 'rmdir', 's', 'scalar', 'seek',
00091 'seekdir', 'select', 'semctl', 'semget', 'semop', 'send', 'setgrent',
00092 'sethostent', 'setnetent', 'setpgrp', 'setpriority', 'setprotoent',
00093 'setpwent', 'setservent', 'setsockopt', 'shift', 'shmctl', 'shmget',
00094 'shmread', 'shmwrite', 'shutdown', 'sin', 'sleep', 'socket', 'socketpair',
00095 'sort', 'splice', 'split', 'sprintf', 'sqrt', 'srand', 'stat',
00096 'study', 'substr', 'symlink', 'syscall', 'sysopen', 'sysread',
00097 'sysseek', 'system', 'syswrite', 'tell', 'telldir', 'tie', 'tied',
00098 'time', 'times', 'tr', 'truncate', 'uc', 'ucfirst', 'umask', 'undef',
00099 'unlink', 'unpack', 'unshift', 'untie', 'utime', 'values',
00100 'vec', 'wait', 'waitpid', 'wantarray', 'warn', 'write', 'y'
00101 )
00102 ),
00103 'SYMBOLS' => array(
00104 '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>'
00105 ),
00106 'CASE_SENSITIVE' => array(
00107 GESHI_COMMENTS => true,
00108 1 => true,
00109 2 => true,
00110 3 => true,
00111 ),
00112 'STYLES' => array(
00113 'KEYWORDS' => array(
00114 1 => 'color: #b1b100;',
00115 2 => 'color: #000000; font-weight: bold;',
00116 3 => 'color: #000066;'
00117 ),
00118 'COMMENTS' => array(
00119 1 => 'color: #808080; font-style: italic;',
00120 'MULTI' => 'color: #808080; font-style: italic;'
00121 ),
00122 'ESCAPE_CHAR' => array(
00123 0 => 'color: #000099; font-weight: bold;'
00124 ),
00125 'BRACKETS' => array(
00126 0 => 'color: #66cc66;'
00127 ),
00128 'STRINGS' => array(
00129 0 => 'color: #ff0000;'
00130 ),
00131 'NUMBERS' => array(
00132 0 => 'color: #cc66cc;'
00133 ),
00134 'METHODS' => array(
00135 1 => 'color: #006600;',
00136 2 => 'color: #006600;'
00137 ),
00138 'SYMBOLS' => array(
00139 0 => 'color: #66cc66;'
00140 ),
00141 'REGEXPS' => array(
00142 0 => 'color: #0000ff;',
00143 4 => 'color: #009999;',
00144 ),
00145 'SCRIPT' => array(
00146 )
00147 ),
00148 'URLS' => array(
00149 3 => 'http://perldoc.perl.org/functions/{FNAME}.html'
00150 ),
00151 'OOLANG' => true,
00152 'OBJECT_SPLITTERS' => array(
00153 1 => '->',
00154 2 => '::'
00155 ),
00156 'REGEXPS' => array(
00157 0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
00158 4 => '<[a-zA-Z_][a-zA-Z0-9_]*>',
00159 ),
00160 'STRICT_MODE_APPLIES' => GESHI_NEVER,
00161 'SCRIPT_DELIMITERS' => array(
00162 ),
00163 'HIGHLIGHT_STRICT_BLOCK' => array(
00164 )
00165 );
00166
00167 ?>