]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/bash.php
2 /*************************************************************************************
5 * Author: Andreas Gohr (andi@splitbrain.org)
6 * Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.5
8 * CVS Revision Version: $Revision: 1.5 $
9 * Date Started: 2004/08/20
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * BASH language file for GeSHi.
17 * - Added support for multiple object splitters
19 * - Added support for URLs
23 * TODO (updated 2004/11/27)
24 * -------------------------
25 * * Get symbols working
26 * * Highlight builtin vars
28 *************************************************************************************
30 * This file is part of GeSHi.
32 * GeSHi is free software; you can redistribute it and/or modify
33 * it under the terms of the GNU General Public License as published by
34 * the Free Software Foundation; either version 2 of the License, or
35 * (at your option) any later version.
37 * GeSHi is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 * GNU General Public License for more details.
42 * You should have received a copy of the GNU General Public License
43 * along with GeSHi; if not, write to the Free Software
44 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46 ************************************************************************************/
48 $language_data = array (
49 'LANG_NAME' => 'Bash',
50 'COMMENT_SINGLE' => array(1 => '#'),
51 'COMMENT_MULTI' => array(),
52 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
53 'QUOTEMARKS' => array("'", '"'),
54 'ESCAPE_CHAR' => '\\',
57 'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function',
58 'if', 'in', 'select', 'then', 'until', 'while', 'time'
61 'source', 'alias', 'bg', 'bind', 'break', 'builtin', 'cd', 'command',
62 'compgen', 'complete', 'continue', 'declare', 'typeset', 'dirs',
63 'disown', 'echo', 'enable', 'eval', 'exec', 'exit', 'export', 'fc',
64 'fg', 'getopts', 'hash', 'help', 'history', 'jobs', 'kill', 'let',
65 'local', 'logout', 'popd', 'printf', 'pushd', 'pwd', 'read', 'readonly',
66 'return', 'set', 'shift', 'shopt', 'suspend', 'test', 'times', 'trap',
67 'type', 'ulimit', 'umask', 'unalias', 'unset', 'wait'
71 '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>'
73 'CASE_SENSITIVE' => array(
74 GESHI_COMMENTS
=> false,
80 1 => 'color: #b1b100;',
81 3 => 'color: #000066;'
84 1 => 'color: #808080; font-style: italic;',
86 'ESCAPE_CHAR' => array(
87 0 => 'color: #000099; font-weight: bold;'
90 0 => 'color: #66cc66;'
93 0 => 'color: #ff0000;'
96 0 => 'color: #cc66cc;'
101 0 => 'color: #66cc66;'
104 0 => 'color: #0000ff;',
105 1 => 'color: #0000ff;',
106 2 => 'color: #0000ff;'
116 'OBJECT_SPLITTERS' => array(
119 0 => "\\$\\{[a-zA-Z_][a-zA-Z0-9_]*?\\}",
120 1 => "\\$[a-zA-Z_][a-zA-Z0-9_]*",
121 2 => "([a-zA-Z_][a-zA-Z0-9_]*)="
123 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
124 'SCRIPT_DELIMITERS' => array(
126 'HIGHLIGHT_STRICT_BLOCK' => array(