first commit. dokuwiki.
[h2N7SspZmY.git] / inc / geshi / ocaml-brief.php
blobf3d01a0a1129428b43b9682c8a47bc72307e6cf7
1 <?php
2 /*************************************************************************************
3 * ocaml.php
4 * ----------
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.
12 * CHANGES
13 * -------
14 * 2005/08/27 (1.0.0)
15 * - First Release
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('(*' => '*)'),
44 'CASE_KEYWORDS' => 0,
45 'QUOTEMARKS' => array('"'),
46 'ESCAPE_CHAR' => "",
47 'KEYWORDS' => array(
48 /* main OCaml keywords */
49 1 => array(
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 */
59 'SYMBOLS' => array(
60 ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
61 '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
63 'CASE_SENSITIVE' => array(
64 GESHI_COMMENTS => false,
65 1 => false,
67 'STYLES' => array(
68 'KEYWORDS' => array(
69 1 => 'color: #06c; font-weight: bold;' /* nice blue */
71 'COMMENTS' => array(
72 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
74 'ESCAPE_CHAR' => array(
76 'BRACKETS' => array(
77 0 => 'color: #6c6;'
79 'STRINGS' => array(
80 0 => 'color: #3cb371;' /* nice green */
82 'NUMBERS' => array(
83 0 => 'color: #c6c;' /* pink */
85 'METHODS' => array(
86 1 => 'color: #060;' /* dark green */
88 'REGEXPS' => array(
90 'SYMBOLS' => array(
91 0 => 'color: #a52a2a;' /* maroon */
93 'SCRIPT' => array(
96 'URLS' => array(
97 1 => '',
99 'OOLANG' => true,
100 'OBJECT_SPLITTERS' => array(
101 1 => '.'
103 'REGEXPS' => array(
105 'STRICT_MODE_APPLIES' => GESHI_NEVER,
106 'SCRIPT_DELIMITERS' => array(
108 'HIGHLIGHT_STRICT_BLOCK' => array(