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.

146 lines
4.2KB

  1. <?php
  2. /*************************************************************************************
  3. * coffeescript.php
  4. * ----------
  5. * Author: Trevor Burnham (trevorburnham@gmail.com)
  6. * Copyright: (c) 2010 Trevor Burnham (http://iterative.ly)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/06/08
  9. *
  10. * CoffeeScript language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/06/08 (1.0.8.9)
  15. * - First Release
  16. *
  17. *************************************************************************************
  18. *
  19. * This file is part of GeSHi.
  20. *
  21. * GeSHi is free software; you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation; either version 2 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * GeSHi is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with GeSHi; if not, write to the Free Software
  33. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34. *
  35. ************************************************************************************/
  36. $language_data = array (
  37. 'LANG_NAME' => 'CoffeeScript',
  38. 'COMMENT_SINGLE' => array(1 => '#'),
  39. 'COMMENT_MULTI' => array('###' => '###'),
  40. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  41. //Longest quotemarks ALWAYS first
  42. 'QUOTEMARKS' => array('"""', "'''", '"', "'"),
  43. 'ESCAPE_CHAR' => '\\',
  44. 'KEYWORDS' => array(
  45. /*
  46. ** Set 1: control keywords
  47. */
  48. 1 => array(
  49. 'break', 'by', 'catch', 'continue', 'else', 'finally', 'for', 'in', 'of', 'if',
  50. 'return', 'switch', 'then', 'throw', 'try', 'unless', 'when', 'while', 'until'
  51. ),
  52. /*
  53. ** Set 2: logic keywords
  54. */
  55. 2 => array(
  56. 'and', 'or', 'is', 'isnt', 'not'
  57. ),
  58. /*
  59. ** Set 3: other keywords
  60. */
  61. 3 => array(
  62. 'instanceof', 'new', 'delete', 'typeof',
  63. 'class', 'super', 'this', 'extends'
  64. ),
  65. /*
  66. ** Set 4: constants
  67. */
  68. 4 => array(
  69. 'true', 'false', 'on', 'off', 'yes', 'no',
  70. 'Infinity', 'NaN', 'undefined', 'null'
  71. )
  72. ),
  73. 'SYMBOLS' => array(
  74. '(', ')', '[', ']', '{', '}', '*', '&', '|', '%', '!', ',', ';', '<', '>', '?', '`',
  75. '+', '-', '*', '/', '->', '=>', '<<', '>>', '@', ':', '^'
  76. ),
  77. 'CASE_SENSITIVE' => array(
  78. GESHI_COMMENTS => false,
  79. 1 => true,
  80. 2 => true,
  81. 3 => true,
  82. 4 => true
  83. ),
  84. 'STYLES' => array(
  85. 'KEYWORDS' => array(
  86. 1 => 'color: #ff7700;font-weight:bold;',
  87. 2 => 'color: #008000;',
  88. 3 => 'color: #dc143c;',
  89. 4 => 'color: #0000cd;'
  90. ),
  91. 'COMMENTS' => array(
  92. 1 => 'color: #808080; font-style: italic;',
  93. 'MULTI' => 'color: #808080; font-style: italic;'
  94. ),
  95. 'ESCAPE_CHAR' => array(
  96. 0 => 'color: #000099; font-weight: bold;'
  97. ),
  98. 'BRACKETS' => array(
  99. 0 => 'color: black;'
  100. ),
  101. 'STRINGS' => array(
  102. 0 => 'color: #483d8b;'
  103. ),
  104. 'NUMBERS' => array(
  105. 0 => 'color: #ff4500;'
  106. ),
  107. 'METHODS' => array(
  108. 1 => 'color: black;'
  109. ),
  110. 'SYMBOLS' => array(
  111. 0 => 'color: #66cc66;'
  112. ),
  113. 'REGEXPS' => array(
  114. ),
  115. 'SCRIPT' => array(
  116. )
  117. ),
  118. 'URLS' => array(
  119. 1 => '',
  120. 2 => '',
  121. 3 => '',
  122. 4 => ''
  123. ),
  124. 'OOLANG' => true,
  125. 'OBJECT_SPLITTERS' => array(
  126. 1 => '.'
  127. ),
  128. 'REGEXPS' => array(
  129. ),
  130. 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  131. 'SCRIPT_DELIMITERS' => array(
  132. 0 => array(
  133. '<script type="text/coffeescript">' => '</script>'
  134. )
  135. ),
  136. 'HIGHLIGHT_STRICT_BLOCK' => array(
  137. 0 => true
  138. )
  139. );
  140. ?>