perl.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * perl.php
00004  * --------
00005  * Author: Andreas Gohr (andi@splitbrain.org), Ben Keen (ben.keen@gmail.com)
00006  * Copyright: (c) 2004 Andreas Gohr, Ben Keen (http://www.benjaminkeen.org/), Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/08/20
00009  *
00010  * Perl language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2006/01/05 (1.0.2)
00015  *   -  Used hardescape feature for ' strings (Cliff Stanford)
00016  * 2004/11/27 (1.0.1)
00017  *   -  Added support for multiple object splitters
00018  * 2004/08/20 (1.0.0)
00019  *   -  First Release
00020  *
00021  * TODO (updated 2004/11/27)
00022  * -------------------------
00023  * * LABEL:
00024  * * string comparison operators
00025  *
00026  *************************************************************************************
00027  *
00028  *     This file is part of GeSHi.
00029  *
00030  *   GeSHi is free software; you can redistribute it and/or modify
00031  *   it under the terms of the GNU General Public License as published by
00032  *   the Free Software Foundation; either version 2 of the License, or
00033  *   (at your option) any later version.
00034  *
00035  *   GeSHi is distributed in the hope that it will be useful,
00036  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00037  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00038  *   GNU General Public License for more details.
00039  *
00040  *   You should have received a copy of the GNU General Public License
00041  *   along with GeSHi; if not, write to the Free Software
00042  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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("'", "'"),             // An optional 2-element array defining the beginning and end of a hard-quoted string
00053      'HARDESCAPE' => array('\\\'', "\\\\"),      // Things that must still be escaped inside a hard-quoted string
00054                                   // If HARDQUOTE is defined, HARDESCAPE must be defined
00055                                   // This will not work unless the first character of each element is either in the
00056                                   // QUOTEMARKS array or is the ESCAPE_CHAR
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 => '-&gt;',
00154           2 => '::'
00155           ),
00156      'REGEXPS' => array(
00157           0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*',
00158           4 => '&lt;[a-zA-Z_][a-zA-Z0-9_]*&gt;',
00159           ),
00160      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00161      'SCRIPT_DELIMITERS' => array(
00162           ),
00163      'HIGHLIGHT_STRICT_BLOCK' => array(
00164           )
00165 );
00166 
00167 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8