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.

138 lines
4.5KB

  1. <?php
  2. /*************************************************************************************
  3. * scala.php
  4. * ----------
  5. * Author: Franco Lombardo (franco@francolombardo.net)
  6. * Copyright: (c) 2008 Franco Lombardo, Benny Baumann
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2008/02/08
  9. *
  10. * Scala language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/02/08 (1.0.7.22)
  15. * - First Release
  16. *
  17. * TODO (updated 2007/04/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' => 'Scala',
  41. 'COMMENT_SINGLE' => array(1 => '//'),
  42. 'COMMENT_MULTI' => array('/*' => '*/'),
  43. 'COMMENT_REGEXP' => array(2 => "/\\'(?!\w\\'|\\\\)\w+(?=\s)/"),
  44. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  45. 'QUOTEMARKS' => array("'",'"'),
  46. 'ESCAPE_CHAR' => '\\',
  47. 'ESCAPE_REGEXP' => array(
  48. //Simple Single Char Escapes
  49. 1 => "#\\\\[nfrtv\$\"\n\\\\]#i",
  50. //Hexadecimal Char Specs
  51. 2 => "#\\\\x[\da-fA-F]{1,2}#i",
  52. //Hexadecimal Char Specs (unicode)
  53. 3 => "#\\\\u[\da-fA-F]{1,4}#",
  54. //Hexadecimal Char Specs (Extended Unicode)
  55. 4 => "#\\\\U[\da-fA-F]{1,8}#",
  56. ),
  57. 'KEYWORDS' => array(
  58. 1 => array(
  59. 'abstract', 'case', 'catch', 'class', 'def',
  60. 'do', 'else', 'extends', 'false', 'final',
  61. 'finally', 'for', 'forSome', 'if', 'implicit',
  62. 'import', 'match', 'new', 'null', 'object',
  63. 'override', 'package', 'private', 'protected', 'requires',
  64. 'return', 'sealed', 'super', 'this', 'throw',
  65. 'trait', 'try', 'true', 'type', 'val',
  66. 'var', 'while', 'with', 'yield'
  67. ),
  68. 2 => array(
  69. 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
  70. )
  71. ),
  72. 'SYMBOLS' => array(
  73. '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?',
  74. '_', ':', '=', '=>', '<<:',
  75. '<%', '>:', '#', '@'
  76. ),
  77. 'CASE_SENSITIVE' => array(
  78. GESHI_COMMENTS => false,
  79. 1 => true,
  80. 2 => true
  81. ),
  82. 'STYLES' => array(
  83. 'KEYWORDS' => array(
  84. 1 => 'color: #0000ff; font-weight: bold;',
  85. 2 => 'color: #9999cc; font-weight: bold;',
  86. ),
  87. 'COMMENTS' => array(
  88. 1 => 'color: #008000; font-style: italic;',
  89. 2 => 'color: #CC66FF;',
  90. 'MULTI' => 'color: #00ff00; font-style: italic;'
  91. ),
  92. 'ESCAPE_CHAR' => array(
  93. 0 => 'color: #6666ff; font-weight: bold;',
  94. 1 => 'color: #6666ff; font-weight: bold;',
  95. 2 => 'color: #5555ff; font-weight: bold;',
  96. 3 => 'color: #4444ff; font-weight: bold;',
  97. 4 => 'color: #3333ff; font-weight: bold;'
  98. ),
  99. 'BRACKETS' => array(
  100. 0 => 'color: #F78811;'
  101. ),
  102. 'STRINGS' => array(
  103. 0 => 'color: #6666FF;'
  104. ),
  105. 'NUMBERS' => array(
  106. 0 => 'color: #F78811;'
  107. ),
  108. 'METHODS' => array(
  109. 1 => 'color: #000000;',
  110. 2 => 'color: #000000;'
  111. ),
  112. 'SYMBOLS' => array(
  113. 0 => 'color: #000080;'
  114. ),
  115. 'SCRIPT' => array(
  116. ),
  117. 'REGEXPS' => array(
  118. )
  119. ),
  120. 'URLS' => array(
  121. 1 => 'http://scala-lang.org',
  122. 2 => ''
  123. ),
  124. 'OOLANG' => true,
  125. 'OBJECT_SPLITTERS' => array(
  126. 1 => '.'
  127. ),
  128. 'REGEXPS' => array(
  129. ),
  130. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  131. 'SCRIPT_DELIMITERS' => array(
  132. ),
  133. 'HIGHLIGHT_STRICT_BLOCK' => array(
  134. )
  135. );
  136. ?>