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.

123 lines
3.8KB

  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.10
  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. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 1 => array(
  48. 'abstract', 'case', 'catch', 'class', 'def',
  49. 'do', 'else', 'extends', 'false', 'final',
  50. 'finally', 'for', 'forSome', 'if', 'implicit',
  51. 'import', 'match', 'new', 'null', 'object',
  52. 'override', 'package', 'private', 'protected', 'requires',
  53. 'return', 'sealed', 'super', 'this', 'throw',
  54. 'trait', 'try', 'true', 'type', 'val',
  55. 'var', 'while', 'with', 'yield'
  56. ),
  57. 2 => array(
  58. 'void', 'double', 'int', 'boolean', 'byte', 'short', 'long', 'char', 'float'
  59. )
  60. ),
  61. 'SYMBOLS' => array(
  62. '(', ')', '[', ']', '{', '}', '*', '&', '%', '!', ';', '<', '>', '?',
  63. '_', ':', '=', '=>', '<<:',
  64. '<%', '>:', '#', '@'
  65. ),
  66. 'CASE_SENSITIVE' => array(
  67. GESHI_COMMENTS => false,
  68. 1 => true,
  69. 2 => true
  70. ),
  71. 'STYLES' => array(
  72. 'KEYWORDS' => array(
  73. 1 => 'color: #0000ff; font-weight: bold;',
  74. 2 => 'color: #9999cc; font-weight: bold;',
  75. ),
  76. 'COMMENTS' => array(
  77. 1=> 'color: #008000; font-style: italic;',
  78. 'MULTI' => 'color: #00ff00; font-style: italic;'
  79. ),
  80. 'ESCAPE_CHAR' => array(
  81. 0 => 'color: #0000ff; font-weight: bold;'
  82. ),
  83. 'BRACKETS' => array(
  84. 0 => 'color: #F78811;'
  85. ),
  86. 'STRINGS' => array(
  87. 0 => 'color: #6666FF;'
  88. ),
  89. 'NUMBERS' => array(
  90. 0 => 'color: #F78811;'
  91. ),
  92. 'METHODS' => array(
  93. 1 => 'color: #000000;',
  94. 2 => 'color: #000000;'
  95. ),
  96. 'SYMBOLS' => array(
  97. 0 => 'color: #000080;'
  98. ),
  99. 'SCRIPT' => array(
  100. ),
  101. 'REGEXPS' => array(
  102. )
  103. ),
  104. 'URLS' => array(
  105. 1 => 'http://scala-lang.org',
  106. 2 => ''
  107. ),
  108. 'OOLANG' => true,
  109. 'OBJECT_SPLITTERS' => array(
  110. 1 => '.'
  111. ),
  112. 'REGEXPS' => array(
  113. ),
  114. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  115. 'SCRIPT_DELIMITERS' => array(
  116. ),
  117. 'HIGHLIGHT_STRICT_BLOCK' => array(
  118. )
  119. );
  120. ?>