bash.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * bash.php
00004  * --------
00005  * Author: Andreas Gohr (andi@splitbrain.org)
00006  * Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/08/20
00009  *
00010  * BASH language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2007/06/11 (1.0.7.20)
00015  *  -  Added a lot of keywords (BenBE / Jan G)
00016  * 2004/11/27 (1.0.2)
00017  *  -  Added support for multiple object splitters
00018  * 2004/10/27 (1.0.1)
00019  *   -  Added support for URLs
00020  * 2004/08/20 (1.0.0)
00021  *   -  First Release
00022  *
00023  * TODO (updated 2004/11/27)
00024  * -------------------------
00025  * * Get symbols working
00026  * * Highlight builtin vars
00027  *
00028  *************************************************************************************
00029  *
00030  *     This file is part of GeSHi.
00031  *
00032  *   GeSHi is free software; you can redistribute it and/or modify
00033  *   it under the terms of the GNU General Public License as published by
00034  *   the Free Software Foundation; either version 2 of the License, or
00035  *   (at your option) any later version.
00036  *
00037  *   GeSHi is distributed in the hope that it will be useful,
00038  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00039  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00040  *   GNU General Public License for more details.
00041  *
00042  *   You should have received a copy of the GNU General Public License
00043  *   along with GeSHi; if not, write to the Free Software
00044  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00045  *
00046  ************************************************************************************/
00047 
00048 $language_data = array (
00049     'LANG_NAME' => 'Bash',
00050     // Bash DOES have single line comments with # markers. But bash also has
00051     // the  $# variable, so comments need special handling (see sf.net
00052     // 1564839)
00053      'COMMENT_SINGLE' => array(),
00054      'COMMENT_MULTI' => array(),
00055      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00056      'QUOTEMARKS' => array("'", '"'),
00057      'ESCAPE_CHAR' => '\\',
00058      'KEYWORDS' => array(
00059           1 => array(
00060                'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function',
00061                'if', 'in', 'select', 'set', 'then', 'until', 'while', 'time'
00062                ),
00063           2 => array(
00064                'aclocal', 'aconnect', 'aplay', 'apm', 'apmsleep', 'apropos',
00065                'ar', 'arch', 'arecord', 'as', 'as86', 'autoconf', 'autoheader',
00066                'automake', 'awk',
00067                'basename', 'bc', 'bison', 'bunzip2', 'bzip2', 'bzcat',
00068                'bzcmp', 'bzdiff', 'bzegrep', 'bzegrep', 'bzfgrep', 'bzgrep',
00069                'bzip2', 'bzip2recover', 'bzless', 'bzmore',
00070                'c++', 'cal', 'cat', 'chattr', 'cc', 'cdda2wav', 'cdparanoia',
00071                'cdrdao', 'cd-read', 'cdrecord', 'chfn', 'chgrp', 'chmod',
00072                'chown', 'chroot', 'chsh', 'chvt', 'clear', 'cmp', 'comm', 'co',
00073                'col', 'cp', 'cpio', 'cpp', 'cut',
00074                'date', 'dd', 'dc', 'dcop', 'deallocvt', 'df', 'diff', 'diff3', 'dir',
00075                'dircolors', 'directomatic', 'dirname', 'dmesg',
00076                'dnsdomainname', 'domainname', 'du', 'dumpkeys',
00077                'ed', 'egrep', 'env', 'expr',
00078                'false', 'fbset', 'fgconsole','fgrep', 'find', 'file', 'flex', 'flex++',
00079                'fmt', 'free', 'ftp', 'funzip', 'fuser',
00080                'g++', 'gawk', 'gc','gcc', 'gdb', 'getent', 'getkeycodes',
00081                'getopt', 'gettext', 'gettextize', 'gimp', 'gimp-remote',
00082                'gimptool', 'gmake', 'gocr', 'grep', 'groups', 'gs', 'gunzip',
00083                'gzexe', 'gzip',
00084                'head', 'hexdump', 'hostname',
00085                'id', 'igawk', 'install',
00086                'join',
00087                'kbd_mode','kbdrate', 'kdialog', 'kfile', 'kill', 'killall',
00088                'last', 'lastb', 'ld', 'ld86', 'ldd', 'less', 'lex', 'link', 'ln', 'loadkeys',
00089                'loadunimap', 'locate', 'lockfile', 'login', 'logname',
00090                'lp', 'lpr', 'ls', 'lsattr', 'lsmod', 'lsmod.old', 'lynx',
00091                'm4', 'make', 'man', 'mapscrn', 'mesg', 'mkdir', 'mkfifo', 
00092                'mknod', 'mktemp', 'more', 'mount', 'msgfmt', 'mv',
00093                'namei', 'nano', 'nasm', 'nawk', 'netstat', 'nice',
00094                'nisdomainname', 'nl', 'nm', 'nm86', 'nmap', 'nohup', 'nop',
00095                'od', 'openvt',
00096                'passwd', 'patch', 'pcregrep', 'pcretest', 'perl', 'perror',
00097                'pgawk', 'pidof', 'ping', 'pr', 'procmail', 'prune', 'ps', 'pstree',
00098                'ps2ascii', 'ps2epsi', 'ps2frag', 'ps2pdf', 'ps2ps', 'psbook',
00099                'psmerge', 'psnup', 'psresize', 'psselect', 'pstops',
00100                'rbash', 'rcs', 'read', 'readlink', 'red', 'resizecons', 'rev', 'rm',
00101                'rmdir', 'run-parts',
00102                'sash', 'sed', 'setfont', 'setkeycodes', 'setleds',
00103                'setmetamode', 'setserial', 'scp', 'seq', 'setterm', 'sh',
00104                'showkey', 'shred', 'size', 'size86', 'skill', 'sleep', 'slogin',
00105                'snice', 'sort', 'sox', 'split', 'ssed', 'ssh', 'ssh-add',
00106                'ssh-agent', 'ssh-keygen', 'ssh-keyscan', 'stat', 'strings',
00107                'strip', 'stty', 'su', 'sudo', 'suidperl', 'sum', 'sync',
00108                'tac', 'tail', 'tar', 'tee', 'tempfile', 'touch', 'tr', 'true',
00109                'umount', 'uname', 'unicode_start', 'unicode_stop', 'uniq',
00110                'unlink', 'unzip', 'updatedb', 'updmap', 'uptime', 'users',
00111                'utmpdump', 'uuidgen',
00112                'vdir', 'vmstat',
00113                'w', 'wall', 'wc', 'wget', 'whatis', 'whereis', 'which', 'who',
00114                'whoami', 'write',
00115                'xargs', 'xhost', 'xmodmap', 'xset',
00116                'yacc', 'yes', 'ypdomainname',
00117                'zcat', 'zcmp', 'zdiff', 'zegrep', 'zfgrep', 'zforce', 'zgrep',
00118                'zip', 'zless', 'zmore', 'znew', 'zsh', ' zsoelim'
00119                ),
00120           3 => array(
00121                'alias', 'bg', 'bind', 'break', 'builtin', 'cd', 'command',
00122                'compgen', 'complete', 'continue', 'declare', 'dirs', 'disown',
00123                'echo', 'enable', 'eval', 'exec', 'exit', 'export', 'fc',
00124                'fg', 'getopts', 'hash', 'help', 'history', 'jobs', 'kill', 'let',
00125                'local', 'logout', 'popd', 'printf', 'pushd', 'pwd', 'readonly',
00126                'return', 'shift', 'shopt', 'source', 'suspend', 'test', 'times',
00127                'trap', 'type', 'typeset', 'ulimit', 'umask', 'unalias', 'unset',
00128                'wait'
00129                )
00130           ),
00131      'SYMBOLS' => array(
00132           '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;'
00133           ),
00134      'CASE_SENSITIVE' => array(
00135           GESHI_COMMENTS => false,
00136           1 => true,
00137           2 => true,
00138           3 => true
00139           ),
00140      'STYLES' => array(
00141           'KEYWORDS' => array(
00142                1 => 'color: #000000; font-weight: bold;',
00143                2 => 'color: #c20cb9; font-weight: bold;',
00144                3 => 'color: #7a0874; font-weight: bold;'
00145                ),
00146           'COMMENTS' => array(
00147                1 => 'color: #808080; font-style: italic;'
00148                ),
00149           'ESCAPE_CHAR' => array(
00150                0 => 'color: #000099; font-weight: bold;'
00151                ),
00152           'BRACKETS' => array(
00153                0 => 'color: #7a0874; font-weight: bold;'
00154                ),
00155           'STRINGS' => array(
00156                0 => 'color: #ff0000;'
00157                ),
00158           'NUMBERS' => array(
00159                0 => 'color: #000000;'
00160                ),
00161           'METHODS' => array(
00162                ),
00163           'SYMBOLS' => array(
00164                0 => 'color: #000000; font-weight: bold;'
00165                ),
00166           'REGEXPS' => array(
00167                0 => 'color: #007800;',
00168                1 => 'color: #007800;',
00169                2 => 'color: #007800;',
00170                3 => 'color: #808080; font-style: italic;',
00171                4 => 'color: #007800;'
00172                ),
00173           'SCRIPT' => array(
00174                )
00175           ),
00176      'URLS' => array(
00177           1 => '',
00178           2 => '',
00179           3 => ''
00180      ),
00181      'OOLANG' => false,
00182      'OBJECT_SPLITTERS' => array(
00183           ),
00184      'REGEXPS' => array(
00185           0 => "\\$\\{[a-zA-Z_][a-zA-Z0-9_]*?\\}",
00186           1 => "\\$[a-zA-Z_][a-zA-Z0-9_]*",
00187           2 => "([a-zA-Z_][a-zA-Z0-9_]*)=",
00188           3 => "(?<!\\$)#[^\n]*",
00189           4 => "\\$#"
00190           ),
00191      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00192      'SCRIPT_DELIMITERS' => array(
00193           ),
00194      'HIGHLIGHT_STRICT_BLOCK' => array(
00195           )
00196 );
00197 
00198 ?>

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