A tumblelog CMS built on AJAX, PHP and MySQL.

ocaml-brief.php 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.7.21
  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. $language_data = array (
  40. 'LANG_NAME' => 'OCaml',
  41. 'COMMENT_SINGLE' => array(),
  42. 'COMMENT_MULTI' => array('(*' => '*)'),
  43. 'CASE_KEYWORDS' => 0,
  44. 'QUOTEMARKS' => array('"'),
  45. 'ESCAPE_CHAR' => "",
  46. 'KEYWORDS' => array(
  47. /* main OCaml keywords */
  48. 1 => array(
  49. 'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
  50. 'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
  51. 'if', 'in', 'include', 'inherit', 'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
  52. 'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
  53. 'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
  54. 'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
  55. )
  56. ),
  57. /* highlighting symbols is really important in OCaml */
  58. 'SYMBOLS' => array(
  59. ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+',
  60. '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
  61. ),
  62. 'CASE_SENSITIVE' => array(
  63. GESHI_COMMENTS => true,
  64. 1 => false,
  65. ),
  66. 'STYLES' => array(
  67. 'KEYWORDS' => array(
  68. 1 => 'color: #06c; font-weight: bold;' /* nice blue */
  69. ),
  70. 'COMMENTS' => array(
  71. 'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
  72. ),
  73. 'ESCAPE_CHAR' => array(
  74. ),
  75. 'BRACKETS' => array(
  76. 0 => 'color: #6c6;'
  77. ),
  78. 'STRINGS' => array(
  79. 0 => 'color: #3cb371;' /* nice green */
  80. ),
  81. 'NUMBERS' => array(
  82. 0 => 'color: #c6c;' /* pink */
  83. ),
  84. 'METHODS' => array(
  85. 1 => 'color: #060;' /* dark green */
  86. ),
  87. 'REGEXPS' => array(
  88. ),
  89. 'SYMBOLS' => array(
  90. 0 => 'color: #a52a2a;' /* maroon */
  91. ),
  92. 'SCRIPT' => array(
  93. )
  94. ),
  95. 'URLS' => array(
  96. 1 => '',
  97. ),
  98. 'OOLANG' => true,
  99. 'OBJECT_SPLITTERS' => array(
  100. 1 => '.'
  101. ),
  102. 'REGEXPS' => array(
  103. ),
  104. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  105. 'SCRIPT_DELIMITERS' => array(
  106. ),
  107. 'HIGHLIGHT_STRICT_BLOCK' => array(
  108. )
  109. );
  110. ?>