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.

modula2.php 4.3KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /****************************************************************************
  3. * modula2.php
  4. * -----------
  5. * Author: Benjamin Kowarsch (benjamin@modula2.net)
  6. * Copyright: (c) 2009 Benjamin Kowarsch (benjamin@modula2.net)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/11/05
  9. *
  10. * Modula-2 language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/05/22 (1.0.8.8)
  15. * - First Release
  16. *
  17. * TODO (updated 2010/05/22)
  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' => 'Modula-2',
  41. 'COMMENT_MULTI' => array('(*' => '*)'),
  42. 'COMMENT_SINGLE' => array(),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array('"'),
  45. 'HARDQUOTE' => array("'", "'"),
  46. 'HARDESCAPE' => array("''"),
  47. 'ESCAPE_CHAR' => '\\',
  48. 'KEYWORDS' => array(
  49. 1 => array( /* reserved words */
  50. 'AND', 'ARRAY', 'BEGIN', 'BY', 'CASE', 'CONST', 'DEFINITION',
  51. 'DIV', 'DO', 'ELSE', 'ELSIF', 'END', 'EXIT', 'EXPORT', 'FOR',
  52. 'FROM', 'IF', 'IMPLEMENTATION', 'IMPORT', 'IN', 'LOOP', 'MOD',
  53. 'MODULE', 'NOT', 'OF', 'OR', 'POINTER', 'PROCEDURE', 'QUALIFIED',
  54. 'RECORD', 'REPEAT', 'RETURN', 'SET', 'THEN', 'TO', 'TYPE',
  55. 'UNTIL', 'VAR', 'WHILE', 'WITH'
  56. ),
  57. 2 => array( /* pervasive constants */
  58. 'NIL', 'FALSE', 'TRUE',
  59. ),
  60. 3 => array( /* pervasive types */
  61. 'BITSET', 'CAP', 'CHR', 'DEC', 'DISPOSE', 'EXCL', 'FLOAT',
  62. 'HALT', 'HIGH', 'INC', 'INCL', 'MAX', 'MIN', 'NEW', 'ODD', 'ORD',
  63. 'SIZE', 'TRUNC', 'VAL'
  64. ),
  65. 4 => array( /* pervasive functions and macros */
  66. 'ABS', 'BOOLEAN', 'CARDINAL', 'CHAR', 'INTEGER',
  67. 'LONGCARD', 'LONGINT', 'LONGREAL', 'PROC', 'REAL'
  68. ),
  69. ),
  70. 'SYMBOLS' => array(
  71. ',', ':', '=', '+', '-', '*', '/', '#', '~'
  72. ),
  73. 'CASE_SENSITIVE' => array(
  74. GESHI_COMMENTS => false,
  75. 1 => true,
  76. 2 => true,
  77. 3 => true,
  78. 4 => true,
  79. ),
  80. 'STYLES' => array(
  81. 'KEYWORDS' => array(
  82. 1 => 'color: #000000; font-weight: bold;',
  83. 2 => 'color: #000000; font-weight: bold;',
  84. 3 => 'color: #000066;',
  85. 4 => 'color: #000066; font-weight: bold;'
  86. ),
  87. 'COMMENTS' => array(
  88. 'MULTI' => 'color: #666666; font-style: italic;'
  89. ),
  90. 'ESCAPE_CHAR' => array(
  91. 0 => 'color: #000099; font-weight: bold;',
  92. 'HARD' => 'color: #000099; font-weight: bold;'
  93. ),
  94. 'BRACKETS' => array(
  95. 0 => 'color: #009900;'
  96. ),
  97. 'STRINGS' => array(
  98. 0 => 'color: #ff0000;',
  99. 'HARD' => 'color: #ff0000;'
  100. ),
  101. 'NUMBERS' => array(
  102. 0 => 'color: #cc66cc;'
  103. ),
  104. 'METHODS' => array(
  105. 1 => 'color: #0066ee;'
  106. ),
  107. 'SYMBOLS' => array(
  108. 0 => 'color: #339933;'
  109. ),
  110. 'REGEXPS' => array(
  111. ),
  112. 'SCRIPT' => array(
  113. )
  114. ),
  115. 'URLS' => array(
  116. 1 => '',
  117. 2 => '',
  118. 3 => '',
  119. 4 => ''
  120. ),
  121. 'OOLANG' => false,
  122. 'OBJECT_SPLITTERS' => array(
  123. 1 => ''
  124. ),
  125. 'REGEXPS' => array(
  126. ),
  127. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  128. 'SCRIPT_DELIMITERS' => array(
  129. ),
  130. 'HIGHLIGHT_STRICT_BLOCK' => array(
  131. ),
  132. 'TAB_WIDTH' => 4
  133. );
  134. ?>