]>
src.bluestatic.org Git - viewsvn.git/blob - ocaml-brief.php
433f95d9862464dbedb42800cce7f56f754f7a77
2 /*************************************************************************************
5 * Author: Flaie (fireflaie@gmail.com)
6 * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.5
8 * CVS Revision Version: $Revision: 1.3 $
9 * Date Started: 2005/08/27
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * OCaml (Objective Caml) language file for GeSHi.
19 * TODO (updated 2005/08/27)
20 * -------------------------
22 *************************************************************************************
24 * This file is part of GeSHi.
26 * GeSHi is free software; you can redistribute it and/or modify
27 * it under the terms of the GNU General Public License as published by
28 * the Free Software Foundation; either version 2 of the License, or
29 * (at your option) any later version.
31 * GeSHi is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 * GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public License
37 * along with GeSHi; if not, write to the Free Software
38 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
40 ************************************************************************************/
42 $language_data = array (
43 'LANG_NAME' => 'OCaml',
44 'COMMENT_SINGLE' => array(),
45 'COMMENT_MULTI' => array('(*' => '*)'),
47 'QUOTEMARKS' => array('"'),
50 /* main OCaml keywords */
52 'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
53 'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
54 'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
55 'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
56 'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
57 'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
60 /* highlighting symbols is really important in OCaml */
62 ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
63 '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
65 'CASE_SENSITIVE' => array(
66 GESHI_COMMENTS
=> true,
71 1 => 'color: #06c; font-weight: bold;' /* nice blue */
74 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
76 'ESCAPE_CHAR' => array(
82 0 => 'color: #3cb371;' /* nice green */
85 0 => 'color: #c6c;' /* pink */
88 1 => 'color: #060;' /* dark green */
93 0 => 'color: #a52a2a;' /* maroon */
102 'OBJECT_SPLITTERS' => array(
107 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
108 'SCRIPT_DELIMITERS' => array(
110 'HIGHLIGHT_STRICT_BLOCK' => array(