KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
5.0KB

  1. <?php
  2. /*************************************************************************************
  3. * clojure.php
  4. * --------
  5. * Author: Jess Johnson (jess@grok-code.com)
  6. * Copyright: (c) 2009 Jess Johnson (http://grok-code.com)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/09/20
  9. *
  10. * Clojure language file for GeSHi.
  11. *
  12. * This file borrows significantly from the lisp language file for GeSHi
  13. *
  14. * CHANGES
  15. * -------
  16. * 2009/09/20 (1.0.8.6)
  17. * - First Release
  18. *
  19. * TODO (updated 2009/09/20)
  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. $language_data = array (
  42. 'LANG_NAME' => 'Clojure',
  43. 'COMMENT_SINGLE' => array(1 => ';'),
  44. 'COMMENT_MULTI' => array(';|' => '|;'),
  45. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS' => array('"'),
  47. 'ESCAPE_CHAR' => '\\',
  48. 'KEYWORDS' => array(
  49. 1 => array(
  50. 'defn', 'defn-', 'defmulti', 'defmethod', 'defmacro', 'deftest',
  51. 'defstruct', 'def', 'defonce', 'let', 'letfn', 'do', 'cond', 'condp',
  52. 'for', 'loop', 'recur', 'when', 'when-not', 'when-let', 'when-first',
  53. 'if', 'if-let', 'if-not', 'doto', 'and', 'or','not','aget','aset',
  54. 'dosync', 'doseq', 'dotimes', 'dorun', 'doall',
  55. 'load', 'import', 'unimport', 'ns', 'in-ns', 'refer', 'print',
  56. 'try', 'catch', 'finally', 'throw', 'fn', 'update-in',
  57. 'with-open', 'with-local-vars', 'binding',
  58. 'gen-class', 'gen-and-load-class', 'gen-and-save-class',
  59. 'implement', 'proxy', 'lazy-cons', 'with-meta',
  60. 'struct', 'struct-map', 'delay', 'locking', 'sync', 'time', 'apply',
  61. 'remove', 'merge', 'interleave', 'interpose', 'distinct',
  62. 'cons', 'concat', 'lazy-cat', 'cycle', 'rest', 'frest', 'drop',
  63. 'drop-while', 'nthrest', 'take', 'take-while', 'take-nth', 'butlast',
  64. 'reverse', 'sort', 'sort-by', 'split-at', 'partition', 'split-with',
  65. 'first', 'ffirst', 'rfirst', 'zipmap', 'into', 'set', 'vec',
  66. 'to-array-2d', 'not-empty', 'seq?', 'not-every?', 'every?', 'not-any?',
  67. 'map', 'mapcat', 'vector?', 'list?', 'hash-map', 'reduce', 'filter',
  68. 'vals', 'keys', 'rseq', 'subseq', 'rsubseq', 'count', 'empty?',
  69. 'fnseq', 'repeatedly', 'iterate', 'drop-last',
  70. 'repeat', 'replicate', 'range', 'into-array',
  71. 'line-seq', 'resultset-seq', 're-seq', 're-find', 'tree-seq', 'file-seq',
  72. 'iterator-seq', 'enumeration-seq', 'declare', 'xml-seq',
  73. 'symbol?', 'string?', 'vector', 'conj', 'str',
  74. 'pos?', 'neg?', 'zero?', 'nil?', 'inc', 'dec', 'format',
  75. 'alter', 'commute', 'ref-set', 'floor', 'assoc', 'send', 'send-off'
  76. )
  77. ),
  78. 'SYMBOLS' => array(
  79. '(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|', '.', '..', '->',
  80. ),
  81. 'CASE_SENSITIVE' => array(
  82. GESHI_COMMENTS => true,
  83. 1 => false
  84. ),
  85. 'STYLES' => array(
  86. 'KEYWORDS' => array(
  87. 1 => 'color: #b1b100;'
  88. ),
  89. 'COMMENTS' => array(
  90. 1 => 'color: #808080; font-style: italic;',
  91. 'MULTI' => 'color: #808080; font-style: italic;'
  92. ),
  93. 'ESCAPE_CHAR' => array(
  94. 0 => 'color: #000099; font-weight: bold;'
  95. ),
  96. 'BRACKETS' => array(
  97. 0 => 'color: #66cc66;'
  98. ),
  99. 'STRINGS' => array(
  100. 0 => 'color: #ff0000;'
  101. ),
  102. 'NUMBERS' => array(
  103. 0 => 'color: #cc66cc;'
  104. ),
  105. 'METHODS' => array(
  106. 0 => 'color: #555;',
  107. 1 => 'color: #555;'
  108. ),
  109. 'SYMBOLS' => array(
  110. 0 => 'color: #66cc66;'
  111. ),
  112. 'REGEXPS' => array(
  113. ),
  114. 'SCRIPT' => array(
  115. )
  116. ),
  117. 'URLS' => array(
  118. 1 => ''
  119. ),
  120. 'OOLANG' => true,
  121. 'OBJECT_SPLITTERS' => array(
  122. '::', ':'
  123. ),
  124. 'REGEXPS' => array(
  125. ),
  126. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  127. 'SCRIPT_DELIMITERS' => array(
  128. ),
  129. 'HIGHLIGHT_STRICT_BLOCK' => array(
  130. )
  131. );
  132. ?>