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.

154 lines
4.6KB

  1. <?php
  2. /*************************************************************************************
  3. * smalltalk.php
  4. * --------
  5. * Author: Bananeweizen (Bananeweizen@gmx.de)
  6. * Copyright: (c) 2005 Bananeweizen (www.bananeweizen.de)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2005/03/27
  9. *
  10. * Smalltalk language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2006-05-24 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO
  18. * -------------------------
  19. * * recognize nested array symbols correctly
  20. *
  21. *************************************************************************************
  22. *
  23. * This file is part of GeSHi.
  24. *
  25. * GeSHi is free software; you can redistribute it and/or modify
  26. * it under the terms of the GNU General Public License as published by
  27. * the Free Software Foundation; either version 2 of the License, or
  28. * (at your option) any later version.
  29. *
  30. * GeSHi is distributed in the hope that it will be useful,
  31. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. * GNU General Public License for more details.
  34. *
  35. * You should have received a copy of the GNU General Public License
  36. * along with GeSHi; if not, write to the Free Software
  37. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  38. *
  39. ************************************************************************************/
  40. $language_data = array (
  41. 'LANG_NAME' => 'Smalltalk',
  42. 'COMMENT_SINGLE' => array(),
  43. 'COMMENT_MULTI' => array('"' => '"'),
  44. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  45. 'QUOTEMARKS' => array("'"),
  46. 'ESCAPE_CHAR' => '',
  47. 'KEYWORDS' => array(
  48. 1 => array(
  49. 'self','super','true','false','nil'
  50. )
  51. ),
  52. 'SYMBOLS' => array(
  53. '[', ']', '=' , ':=', '(', ')', '#'
  54. ),
  55. 'CASE_SENSITIVE' => array(
  56. GESHI_COMMENTS => false,
  57. 1 => true
  58. ),
  59. 'STYLES' => array(
  60. 'KEYWORDS' => array(
  61. 1 => 'color: #7f007f;'
  62. ),
  63. 'COMMENTS' => array(
  64. 'MULTI' => 'color: #007f00; font-style: italic;'
  65. ),
  66. 'ESCAPE_CHAR' => array(
  67. 0 => ''
  68. ),
  69. 'BRACKETS' => array(
  70. 0 => ''
  71. ),
  72. 'STRINGS' => array(
  73. 0 => 'color: #7f0000;'
  74. ),
  75. 'NUMBERS' => array(
  76. 0 => 'color: #7f0000;'
  77. ),
  78. 'METHODS' => array(
  79. 0 => ''
  80. ),
  81. 'SYMBOLS' => array(
  82. 0 => 'color: #000066; font-weight:bold;'
  83. ),
  84. 'REGEXPS' => array(
  85. 0 => 'color: #0000ff;',
  86. 1 => 'color: #7f0000;',
  87. 2 => 'color: #7f0000;',
  88. 3 => 'color: #00007f;',
  89. 5 => 'color: #00007f;',
  90. 6 => 'color: #00007f;'
  91. ),
  92. 'SCRIPT' => array(
  93. 0 => ''
  94. )
  95. ),
  96. 'URLS' => array(
  97. 1 => ''
  98. ),
  99. 'OOLANG' => false,
  100. 'OBJECT_SPLITTERS' => array(
  101. ),
  102. 'REGEXPS' => array(
  103. 0 => array(
  104. GESHI_SEARCH => '([^a-zA-Z0-9_#<])([A-Z]+[a-zA-Z0-9_]*)(?!>)', //class names
  105. GESHI_REPLACE => '\\2',
  106. GESHI_MODIFIERS => '',
  107. GESHI_BEFORE => '\\1',
  108. GESHI_AFTER => ''
  109. ),
  110. 1 => array(
  111. GESHI_SEARCH => '(#+)([a-zA-Z0-9_]+)', //symbols
  112. GESHI_REPLACE => '\\1\\2',
  113. GESHI_MODIFIERS => '',
  114. GESHI_BEFORE => '',
  115. GESHI_AFTER => ''
  116. ),
  117. 2 => array(
  118. GESHI_SEARCH => '(#\s*\([^)]*\))', //array symbols
  119. GESHI_REPLACE => '\\1',
  120. GESHI_MODIFIERS => '',
  121. GESHI_BEFORE => '',
  122. GESHI_AFTER => ''
  123. ),
  124. 3 => array(
  125. GESHI_SEARCH => '<PIPE>([a-zA-Z0-9_\s]+)<PIPE>', //temporary variables
  126. GESHI_REPLACE => '\\1',
  127. GESHI_MODIFIERS => '',
  128. GESHI_BEFORE => '|',
  129. GESHI_AFTER => '|'
  130. ),
  131. 5 => array(
  132. GESHI_SEARCH => '([:(,=[.*\/+-]\s*(?!\d+\/))([a-zA-Z0-9_]+)', //message parameters, message receivers
  133. GESHI_REPLACE => '\\2',
  134. GESHI_MODIFIERS => 's',
  135. GESHI_BEFORE => '\\1',
  136. GESHI_AFTER => ''
  137. ),
  138. 6 => array(
  139. GESHI_SEARCH => '([a-zA-Z0-9_]+)(\s*:=)', //assignment targets
  140. GESHI_REPLACE => '\\1',
  141. GESHI_MODIFIERS => '',
  142. GESHI_BEFORE => '',
  143. GESHI_AFTER => '\\2'
  144. )
  145. ),
  146. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  147. 'SCRIPT_DELIMITERS' => array(
  148. ),
  149. 'HIGHLIGHT_STRICT_BLOCK' => array(
  150. )
  151. );
  152. ?>