ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ocaml-brief.php
Go to the documentation of this file.
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.9.0
8  * Date Started: 2005/08/27
9  *
10  * OCaml (Objective Caml) language file for GeSHi.
11  *
12  * CHANGES
13  * -------
14  * 2005/08/27 (1.0.0)
15  * - First Release
16  *
17  * TODO (updated 2005/08/27)
18  * -------------------------
19  *
20  *************************************************************************************
21  *
22  * This file is part of GeSHi.
23  *
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.
28  *
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.
33  *
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
37  *
38  ************************************************************************************/
39 
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'
56  )
57  ),
58  /* highlighting symbols is really important in OCaml */
59  'SYMBOLS' => array(
60  ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
61  '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
62  ),
63  'CASE_SENSITIVE' => array(
64  GESHI_COMMENTS => false,
65  1 => false,
66  ),
67  'STYLES' => array(
68  'KEYWORDS' => array(
69  1 => 'color: #06c; font-weight: bold;' /* nice blue */
70  ),
71  'COMMENTS' => array(
72  'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
73  ),
74  'ESCAPE_CHAR' => array(
75  ),
76  'BRACKETS' => array(
77  0 => 'color: #6c6;'
78  ),
79  'STRINGS' => array(
80  0 => 'color: #3cb371;' /* nice green */
81  ),
82  'NUMBERS' => array(
83  0 => 'color: #c6c;' /* pink */
84  ),
85  'METHODS' => array(
86  1 => 'color: #060;' /* dark green */
87  ),
88  'REGEXPS' => array(
89  ),
90  'SYMBOLS' => array(
91  0 => 'color: #a52a2a;' /* maroon */
92  ),
93  'SCRIPT' => array(
94  )
95  ),
96  'URLS' => array(
97  1 => '',
98  ),
99  'OOLANG' => true,
100  'OBJECT_SPLITTERS' => array(
101  1 => '.'
102  ),
103  'REGEXPS' => array(
104  ),
105  'STRICT_MODE_APPLIES' => GESHI_NEVER,
106  'SCRIPT_DELIMITERS' => array(
107  ),
108  'HIGHLIGHT_STRICT_BLOCK' => array(
109  )
110 );
$language_data
Definition: ocaml-brief.php:40
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_NEVER
#+ private
Definition: geshi.php:123