jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [ocaml.php] - Blame information for rev 6

 

Line No. Rev Author Line
11simandl<?php
2/*************************************************************************************
3 * ocaml.php
4 * ----------
5 * Author: Flaie (fireflaie@gmail.com)
6 * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
73simandl * Release Version: 1.0.8.3
81simandl * Date Started: 2005/08/27
9 *
10 * OCaml (Objective Caml) language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2008/03/29 (1.0.7.22)
15 * - Fixed warnings resulting from missing style information
16 * 2005/08/27 (1.0.0)
17 * - First Release
18 *
19 * TODO (updated 2005/08/27)
20 * -------------------------
21 *
22 *************************************************************************************
23 *
24 * This file is part of GeSHi.
25 *
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.
30 *
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.
35 *
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
39 *
40 ************************************************************************************/
41 
42$language_data = array (
43 'LANG_NAME' => 'OCaml',
44 'COMMENT_SINGLE' => array(),
45 'COMMENT_MULTI' => array('(*' => '*)'),
46 'CASE_KEYWORDS' => 0,
47 'QUOTEMARKS' => array('"'),
48 'ESCAPE_CHAR' => "",
49 'KEYWORDS' => array(
50 /* main OCaml keywords */
51 1 => array(
52 'and', 'as', 'asr', 'begin', 'class', 'closed', 'constraint', 'do', 'done', 'downto', 'else',
53 'end', 'exception', 'external', 'failwith', 'false', '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'
58 ),
59 /* define names of main librarys, so we can link to it */
60 2 => array(
61 'Arg', 'Arith_status', 'Array', 'ArrayLabels', 'Big_int', 'Bigarray', 'Buffer', 'Callback',
62 'CamlinternalOO', 'Char', 'Complex', 'Condition', 'Dbm', 'Digest', 'Dynlink', 'Event',
63 'Filename', 'Format', 'Gc', 'Genlex', 'Graphics', 'GraphicsX11', 'Hashtbl', 'Int32', 'Int64',
64 'Lazy', 'Lexing', 'List', 'ListLabels', 'Map', 'Marshal', 'MoreLabels', 'Mutex', 'Nativeint',
65 'Num', 'Obj', 'Oo', 'Parsing', 'Pervasives', 'Printexc', 'Printf', 'Queue', 'Random', 'Scanf',
66 'Set', 'Sort', 'Stack', 'StdLabels', 'Str', 'Stream', 'String', 'StringLabels', 'Sys', 'Thread',
67 'ThreadUnix', 'Tk'
68 ),
69 /* just link to the Pervasives functions library, cause it's the default opened library when starting OCaml */
70 3 => array(
71 'abs', 'abs_float', 'acos', 'asin', 'at_exit', 'atan', 'atan2',
72 'bool_of_string', 'ceil', 'char_of_int', 'classify_float',
73 'close_in', 'close_in_noerr', 'close_out', 'close_out_noerr',
74 'compare', 'cos', 'cosh', 'decr', 'epsilon_float', 'exit', 'exp',
75 'float', 'float_of_int', 'float_of_string', 'floor', 'flush',
76 'flush_all', 'format_of_string', 'frexp', 'fst', 'ignore',
77 'in_channel_length', 'infinity', 'input', 'input_binary_int',
78 'input_byte', 'input_char', 'input_line', 'input_value',
79 'int_of_char', 'int_of_float', 'int_of_string', 'invalid_arg',
80 'ldexp', 'log', 'log10', 'max', 'max_float', 'max_int', 'min',
81 'min_float', 'min_int', 'mod_float', 'modf', 'nan', 'open_in',
82 'open_in_bin', 'open_in_gen', 'open_out', 'open_out_bin',
83 'open_out_gen', 'out_channel_length', 'output', 'output_binary_int',
84 'output_byte', 'output_char', 'output_string', 'output_value',
85 'pos_in', 'pos_out', 'pred', 'prerr_char', 'prerr_endline',
86 'prerr_float', 'prerr_int', 'prerr_newline', 'prerr_string',
87 'print_char', 'print_endline', 'print_float', 'print_int',
88 'print_newline', 'print_string', 'read_float', 'read_int',
89 'read_line', 'really_input', 'seek_in', 'seek_out',
90 'set_binary_mode_in', 'set_binary_mode_out', 'sin', 'sinh', 'snd',
91 'sqrt', 'string_of_bool', 'string_of_float', 'string_of_format',
92 'string_of_int', 'succ', 'tan', 'tanh', 'truncate'
93 ),
94 /* here Pervasives Types */
95 4 => array (
96 'fpclass', 'in_channel', 'out_channel', 'open_flag', 'Sys_error', 'format'
97 ),
98 /* finally Pervasives Exceptions */
99 5 => array (
100 'Exit', 'Invalid_Argument', 'Failure', 'Division_by_zero'
101 )
102 ),
103 /* highlighting symbols is really important in OCaml */
104 'SYMBOLS' => array(
105 ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
106 '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
107 ),
108 'CASE_SENSITIVE' => array(
109 GESHI_COMMENTS => false,
110 1 => false,
111 2 => true, /* functions name are case sensitive */
112 3 => true, /* types name too */
113 4 => true, /* pervasives types */
114 5 => true /* pervasives exceptions */
115 ),
116 'STYLES' => array(
117 'KEYWORDS' => array(
118 1 => 'color: #06c; font-weight: bold;', /* nice blue */
119 2 => 'color: #06c; font-weight: bold;', /* nice blue */
120 3 => 'color: #06c; font-weight: bold;', /* nice blue */
121 4 => 'color: #06c; font-weight: bold;', /* nice blue */
122 5 => 'color: #06c; font-weight: bold;' /* nice blue */
123 ),
124 'COMMENTS' => array(
125 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
126 ),
127 'ESCAPE_CHAR' => array(
128 ),
129 'BRACKETS' => array(
130 
131 ),
132 'STRINGS' => array(
133 
134 ),
135 'NUMBERS' => array(
136 
137 ),
138 'METHODS' => array(
139 1 => 'color: #060;' /* dark green */
140 ),
141 'REGEXPS' => array(
142 ),
143 'SYMBOLS' => array(
144 
145 ),
146 'SCRIPT' => array(
147 )
148 ),
149 'URLS' => array(
150 /* some of keywords are Pervasives functions (land, lxor, asr, ...) */
151 1 => '',
152 /* link to the wanted library */
153 2 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/{FNAME}.html',
154 /* link to Pervasives functions */
155 3 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#VAL{FNAME}',
156 /* link to Pervasives type */
157 4 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#TYPE{FNAME}',
158 /* link to Pervasives exceptions */
159 5 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#EXCEPTION{FNAME}'
160 ),
161 'OOLANG' => true,
162 'OBJECT_SPLITTERS' => array(
163 1 => '.'
164 ),
165 'REGEXPS' => array(
166 ),
167 'STRICT_MODE_APPLIES' => GESHI_NEVER,
168 'SCRIPT_DELIMITERS' => array(
169 ),
170 'HIGHLIGHT_STRICT_BLOCK' => array(
171 )
172);
173 
174?>

Powered by WebSVN 2.2.1