plugins/geshi/geshi/ocaml-brief.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * ocaml.php
     3  * ocaml.php
     4  * ----------
     4  * ----------
     5  * Author: Flaie (fireflaie@gmail.com)
     5  * Author: Flaie (fireflaie@gmail.com)
     6  * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
     6  * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2005/08/27
     8  * Date Started: 2005/08/27
     9  *
     9  *
    10  * OCaml (Objective Caml) language file for GeSHi.
    10  * OCaml (Objective Caml) language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    36  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    36  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    37  *
    37  *
    38  ************************************************************************************/
    38  ************************************************************************************/
    39 
    39 
    40 $language_data = array (
    40 $language_data = array (
    41 	'LANG_NAME' => 'OCaml',
    41     'LANG_NAME' => 'OCaml (brief)',
    42 	'COMMENT_SINGLE' => array(),
    42     'COMMENT_SINGLE' => array(),
    43 	'COMMENT_MULTI' => array('(*' => '*)'),
    43     'COMMENT_MULTI' => array('(*' => '*)'),
    44 	'CASE_KEYWORDS' => 0,
    44     'CASE_KEYWORDS' => 0,
    45 	'QUOTEMARKS' => array('"'),
    45     'QUOTEMARKS' => array('"'),
    46 	'ESCAPE_CHAR' => "",
    46     'ESCAPE_CHAR' => "",
    47 	'KEYWORDS' => array(
    47     'KEYWORDS' => array(
    48 	   /* main OCaml keywords */
    48         /* main OCaml keywords */
    49 		1 => array(
    49         1 => array(
    50 			'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
    50             'and', 'as', 'asr', 'begin', 'class', 'closed', 'constraint', 'do', 'done', 'downto', 'else',
    51 			'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
    51             'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
    52 			'if', 'in', 'include', 'inherit',  'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
    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',
    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',
    54             'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
    55 			'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
    55             'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
    56 			)
    56             )
    57 		),
    57         ),
    58 	/* highlighting symbols is really important in OCaml */
    58     /* highlighting symbols is really important in OCaml */
    59 	'SYMBOLS' => array(
    59     'SYMBOLS' => array(
    60 			';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+', 
    60         ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
    61 			'>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
    61         '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
    62 			), 
    62         ),
    63 	'CASE_SENSITIVE' => array(
    63     'CASE_SENSITIVE' => array(
    64 		GESHI_COMMENTS => true,
    64         GESHI_COMMENTS => false,
    65 		1 => false,
    65         1 => false,
    66 		),
    66         ),
    67 	'STYLES' => array(
    67     'STYLES' => array(
    68 		'KEYWORDS' => array(
    68         'KEYWORDS' => array(
    69 			1 => 'color: #06c; font-weight: bold;' /* nice blue */
    69             1 => 'color: #06c; font-weight: bold;' /* nice blue */
    70 			),
    70             ),
    71 		'COMMENTS' => array(
    71         'COMMENTS' => array(
    72 			'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
    72             'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
    73 			),
    73             ),
    74 		'ESCAPE_CHAR' => array(
    74         'ESCAPE_CHAR' => array(
    75 			),
    75             ),
    76 		'BRACKETS' => array(
    76         'BRACKETS' => array(
    77 			0 => 'color: #6c6;'
    77             0 => 'color: #6c6;'
    78 			),
    78             ),
    79 		'STRINGS' => array(
    79         'STRINGS' => array(
    80 			0 => 'color: #3cb371;' /* nice green */
    80             0 => 'color: #3cb371;' /* nice green */
    81 			),
    81             ),
    82 		'NUMBERS' => array(
    82         'NUMBERS' => array(
    83 			0 => 'color: #c6c;' /* pink */
    83             0 => 'color: #c6c;' /* pink */
    84 			),
    84             ),
    85 		'METHODS' => array(
    85         'METHODS' => array(
    86 			1 => 'color: #060;' /* dark green */
    86             1 => 'color: #060;' /* dark green */
    87 			),
    87             ),
    88 		'REGEXPS' => array(
    88         'REGEXPS' => array(
    89 			),
    89             ),
    90 		'SYMBOLS' => array( 
    90         'SYMBOLS' => array(
    91 			0 => 'color: #a52a2a;' /* maroon */
    91             0 => 'color: #a52a2a;' /* maroon */
    92 			),
    92             ),
    93 		'SCRIPT' => array(
    93         'SCRIPT' => array(
    94 			)
    94             )
    95 		),
    95         ),
    96 	'URLS' => array(
    96     'URLS' => array(
    97 		1 => '',
    97         1 => '',
    98 		),
    98         ),
    99 	'OOLANG' => true,
    99     'OOLANG' => true,
   100 	'OBJECT_SPLITTERS' => array(
   100     'OBJECT_SPLITTERS' => array(
   101 		1 => '.'
   101         1 => '.'
   102 		),
   102         ),
   103 	'REGEXPS' => array(
   103     'REGEXPS' => array(
   104 		),
   104         ),
   105 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
   105     'STRICT_MODE_APPLIES' => GESHI_NEVER,
   106 	'SCRIPT_DELIMITERS' => array(
   106     'SCRIPT_DELIMITERS' => array(
   107 		),
   107         ),
   108 	'HIGHLIGHT_STRICT_BLOCK' => array(
   108     'HIGHLIGHT_STRICT_BLOCK' => array(
   109 		)
   109         )
   110 );
   110 );
   111 
   111 
   112 ?>
   112 ?>