Updating GeSHi to latest version, 1.0.7.6
[viewsvn.git] / includes / geshi / geshi / bash.php
1 <?php
2 /*************************************************************************************
3 * bash.php
4 * --------
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.6
8 * CVS Revision Version: $Revision: 1.6 $
9 * Date Started: 2004/08/20
10 * Last Modified: $Date: 2005/11/20 07:47:40 $
11 *
12 * BASH language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2004/11/27 (1.0.2)
17 * - Added support for multiple object splitters
18 * 2004/10/27 (1.0.1)
19 * - Added support for URLs
20 * 2004/08/20 (1.0.0)
21 * - First Release
22 *
23 * TODO (updated 2004/11/27)
24 * -------------------------
25 * * Get symbols working
26 * * Highlight builtin vars
27 *
28 *************************************************************************************
29 *
30 * This file is part of GeSHi.
31 *
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.
36 *
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.
41 *
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
45 *
46 ************************************************************************************/
47
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' => '\\',
55 'KEYWORDS' => array(
56 1 => array(
57 'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function',
58 'if', 'in', 'select', 'then', 'until', 'while', 'time'
59 ),
60 3 => array(
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'
68 )
69 ),
70 'SYMBOLS' => array(
71 '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>'
72 ),
73 'CASE_SENSITIVE' => array(
74 GESHI_COMMENTS => false,
75 1 => true,
76 3 => true,
77 ),
78 'STYLES' => array(
79 'KEYWORDS' => array(
80 1 => 'color: #b1b100;',
81 3 => 'color: #000066;'
82 ),
83 'COMMENTS' => array(
84 1 => 'color: #808080; font-style: italic;',
85 ),
86 'ESCAPE_CHAR' => array(
87 0 => 'color: #000099; font-weight: bold;'
88 ),
89 'BRACKETS' => array(
90 0 => 'color: #66cc66;'
91 ),
92 'STRINGS' => array(
93 0 => 'color: #ff0000;'
94 ),
95 'NUMBERS' => array(
96 0 => 'color: #cc66cc;'
97 ),
98 'METHODS' => array(
99 ),
100 'SYMBOLS' => array(
101 0 => 'color: #66cc66;'
102 ),
103 'REGEXPS' => array(
104 0 => 'color: #0000ff;',
105 1 => 'color: #0000ff;',
106 2 => 'color: #0000ff;'
107 ),
108 'SCRIPT' => array(
109 )
110 ),
111 'URLS' => array(
112 1 => '',
113 3 => ''
114 ),
115 'OOLANG' => false,
116 'OBJECT_SPLITTERS' => array(
117 ),
118 'REGEXPS' => 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_]*)="
122 ),
123 'STRICT_MODE_APPLIES' => GESHI_NEVER,
124 'SCRIPT_DELIMITERS' => array(
125 ),
126 'HIGHLIGHT_STRICT_BLOCK' => array(
127 )
128 );
129
130 ?>