]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/c.php
2 /*************************************************************************************
5 * Author: Nigel McNie (oracle.shinoda@gmail.com)
7 * - Jack Lloyd (lloyd@randombit.net)
8 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
9 * Release Version: 1.0.7.5
10 * CVS Revision Version: $Revision: 1.5 $
11 * Date Started: 2004/06/04
12 * Last Modified: $Date: 2005/10/22 07:52:59 $
14 * C language file for GeSHi.
19 * - Added a couple of new keywords (Jack Lloyd)
21 * - Added support for multiple object splitters
23 * - Added support for URLs
25 * - Added support for symbols
29 * TODO (updated 2004/11/27)
30 * -------------------------
31 * - Get a list of inbuilt functions to add (and explore C more
32 * to complete this rather bare language file
34 *************************************************************************************
36 * This file is part of GeSHi.
38 * GeSHi is free software; you can redistribute it and/or modify
39 * it under the terms of the GNU General Public License as published by
40 * the Free Software Foundation; either version 2 of the License, or
41 * (at your option) any later version.
43 * GeSHi is distributed in the hope that it will be useful,
44 * but WITHOUT ANY WARRANTY; without even the implied warranty of
45 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 * GNU General Public License for more details.
48 * You should have received a copy of the GNU General Public License
49 * along with GeSHi; if not, write to the Free Software
50 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
52 ************************************************************************************/
54 $language_data = array (
56 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
57 'COMMENT_MULTI' => array('/*' => '*/'),
58 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
59 'QUOTEMARKS' => array("'", '"'),
60 'ESCAPE_CHAR' => '\\',
63 'if', 'return', 'while', 'case', 'continue', 'default',
64 'do', 'else', 'for', 'switch', 'goto'
67 'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline'
73 'auto', 'char', 'const', 'double', 'float', 'int', 'long',
74 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
75 'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t'
79 '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
81 'CASE_SENSITIVE' => array(
82 GESHI_COMMENTS
=> true,
90 1 => 'color: #b1b100;',
91 2 => 'color: #000000; font-weight: bold;',
92 3 => 'color: #000066;',
93 4 => 'color: #993333;'
96 1 => 'color: #808080; font-style: italic;',
97 2 => 'color: #339933;',
98 'MULTI' => 'color: #808080; font-style: italic;'
100 'ESCAPE_CHAR' => array(
101 0 => 'color: #000099; font-weight: bold;'
104 0 => 'color: #66cc66;'
107 0 => 'color: #ff0000;'
110 0 => 'color: #cc66cc;'
113 1 => 'color: #202020;',
114 2 => 'color: #202020;'
117 0 => 'color: #66cc66;'
127 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
131 'OBJECT_SPLITTERS' => array(
137 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
138 'SCRIPT_DELIMITERS' => array(
140 'HIGHLIGHT_STRICT_BLOCK' => array(