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.

116 lines
3.7KB

  1. <?php
  2. /*************************************************************************************
  3. * objeck.php
  4. * --------
  5. * Author: Randy Hollines (objeck@gmail.com)
  6. * Copyright: (c) 2010 Randy Hollines (http://code.google.com/p/objeck-lang/)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/07/01
  9. *
  10. * Objeck Programming Language language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/07/26 (1.0.8.10)
  15. * - Added new and missing keywords and symbols: 'String', 'each', '+=', '-=', '*=' and '/='.
  16. * 2010/07/01 (1.0.8.9)
  17. * - First Release
  18. *
  19. *************************************************************************************
  20. *
  21. * This file is part of GeSHi.
  22. *
  23. * GeSHi is free software; you can redistribute it and/or modify
  24. * it under the terms of the GNU General Public License as published by
  25. * the Free Software Foundation; either version 2 of the License, or
  26. * (at your option) any later version.
  27. *
  28. * GeSHi is distributed in the hope that it will be useful,
  29. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31. * GNU General Public License for more details.
  32. *
  33. * You should have received a copy of the GNU General Public License
  34. * along with GeSHi; if not, write to the Free Software
  35. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  36. *
  37. ************************************************************************************/
  38. $language_data = array(
  39. 'LANG_NAME' => 'Objeck Programming Language',
  40. 'COMMENT_SINGLE' => array(1 => '#'),
  41. 'COMMENT_MULTI' => array('#~' => '~#'),
  42. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  43. 'QUOTEMARKS' => array('"'),
  44. 'ESCAPE_CHAR' => '\\',
  45. 'KEYWORDS' => array(
  46. 1 => array(
  47. 'virtual', 'if', 'else', 'do', 'while', 'use', 'bundle', 'native',
  48. 'static', 'public', 'private', 'class', 'function', 'method',
  49. 'select', 'other', 'enum', 'for', 'each', 'label', 'return', 'from'
  50. ),
  51. 2 => array(
  52. 'Byte', 'Int', 'Nil', 'Float', 'Char', 'Bool', 'String'
  53. ),
  54. 3 => array(
  55. 'true', 'false'
  56. )
  57. ),
  58. 'SYMBOLS' => array(
  59. 1 => array(
  60. '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '%', '=', '<', '>', '&', '|', ':', ';', ',', '+=', '-=', '*=', '/=',
  61. )
  62. ),
  63. 'CASE_SENSITIVE' => array(
  64. GESHI_COMMENTS => false,
  65. 1 => true,
  66. 2 => true,
  67. 3 => true
  68. ),
  69. 'STYLES' => array(
  70. 'KEYWORDS' => array(
  71. 1 => 'color: #b1b100;',
  72. 2 => 'color: #b1b100;',
  73. 3 => 'color: #b1b100;'
  74. ),
  75. 'COMMENTS' => array(
  76. 1 => 'color: #666666; font-style: italic;',
  77. 'MULTI' => 'color: #666666; font-style: italic;'
  78. ),
  79. 'ESCAPE_CHAR' => array(
  80. 0 => 'color: #000099; font-weight: bold;'
  81. ),
  82. 'BRACKETS' => array(
  83. 0 => 'color: #009900;'
  84. ),
  85. 'STRINGS' => array(
  86. 0 => 'color: #0000ff;'
  87. ),
  88. 'NUMBERS' => array(
  89. 0 => 'color: #cc66cc;',
  90. ),
  91. 'METHODS' => array(
  92. 0 => 'color: #004000;'
  93. ),
  94. 'SYMBOLS' => array(
  95. 1 => 'color: #339933;'
  96. ),
  97. 'REGEXPS' => array(),
  98. 'SCRIPT' => array()
  99. ),
  100. 'URLS' => array(
  101. 1 => '',
  102. 2 => '',
  103. 3 => ''
  104. ),
  105. 'OOLANG' => true,
  106. 'OBJECT_SPLITTERS' => array(
  107. 1 => '-&gt;'
  108. ),
  109. 'REGEXPS' => array(),
  110. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  111. 'SCRIPT_DELIMITERS' => array(),
  112. 'HIGHLIGHT_STRICT_BLOCK' => array()
  113. );
  114. ?>