2 /*************************************************************************************
5 * Author: Flaie (fireflaie@gmail.com)
6 * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.8.4
8 * Date Started: 2005/08/27
10 * OCaml (Objective Caml) language file for GeSHi.
17 * TODO (updated 2005/08/27)
18 * -------------------------
20 *************************************************************************************
22 * This file is part of GeSHi.
24 * GeSHi is free software; you can redistribute it and/or modify
25 * it under the terms of the GNU General Public License as published by
26 * the Free Software Foundation; either version 2 of the License, or
27 * (at your option) any later version.
29 * GeSHi is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * You should have received a copy of the GNU General Public License
35 * along with GeSHi; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 ************************************************************************************/
40 $language_data = array (
41 'LANG_NAME' => 'OCaml (brief)',
42 'COMMENT_SINGLE' => array(),
43 'COMMENT_MULTI' => array('(*' => '*)'),
45 'QUOTEMARKS' => array('"'),
48 /* main OCaml keywords */
50 'and', 'as', 'asr', 'begin', 'class', 'closed', 'constraint', 'do', 'done', 'downto', 'else',
51 'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
52 'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
53 'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
54 'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
55 'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
58 /* highlighting symbols is really important in OCaml */
60 ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
61 '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
63 'CASE_SENSITIVE' => array(
64 GESHI_COMMENTS
=> false,
69 1 => 'color: #06c; font-weight: bold;' /* nice blue */
72 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
74 'ESCAPE_CHAR' => array(
80 0 => 'color: #3cb371;' /* nice green */
83 0 => 'color: #c6c;' /* pink */
86 1 => 'color: #060;' /* dark green */
91 0 => 'color: #a52a2a;' /* maroon */
100 'OBJECT_SPLITTERS' => array(
105 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
106 'SCRIPT_DELIMITERS' => array(
108 'HIGHLIGHT_STRICT_BLOCK' => array(