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.

153 lines
5.1KB

  1. <?php
  2. /*************************************************************************************
  3. * pascal.php
  4. * ----------
  5. * Author: Tux (tux@inamil.cz)
  6. * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.10
  8. * Date Started: 2004/07/26
  9. *
  10. * Pascal language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/05/23 (1.0.7.22)
  15. * - Added description of extra language features (SF#1970248)
  16. * 2004/11/27 (1.0.2)
  17. * - Added support for multiple object splitters
  18. * 2004/10/27 (1.0.1)
  19. * - Added support for URLs
  20. * 2004/08/05 (1.0.0)
  21. * - Added support for symbols
  22. * 2004/07/27 (0.9.1)
  23. * - Pascal is OO language. Some new words.
  24. * 2004/07/26 (0.9.0)
  25. * - First Release
  26. *
  27. * TODO (updated 2004/11/27)
  28. * -------------------------
  29. *
  30. *************************************************************************************
  31. *
  32. * This file is part of GeSHi.
  33. *
  34. * GeSHi is free software; you can redistribute it and/or modify
  35. * it under the terms of the GNU General Public License as published by
  36. * the Free Software Foundation; either version 2 of the License, or
  37. * (at your option) any later version.
  38. *
  39. * GeSHi is distributed in the hope that it will be useful,
  40. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42. * GNU General Public License for more details.
  43. *
  44. * You should have received a copy of the GNU General Public License
  45. * along with GeSHi; if not, write to the Free Software
  46. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  47. *
  48. ************************************************************************************/
  49. $language_data = array (
  50. 'LANG_NAME' => 'Pascal',
  51. 'COMMENT_SINGLE' => array(1 => '//'),
  52. 'COMMENT_MULTI' => array('{' => '}','(*' => '*)'),
  53. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  54. 'QUOTEMARKS' => array('"'),
  55. 'HARDQUOTE' => array("'", "'"),
  56. 'HARDESCAPE' => array("''"),
  57. 'ESCAPE_CHAR' => '\\',
  58. 'KEYWORDS' => array(
  59. 1 => array(
  60. 'absolute','asm','assembler','begin','break','case','catch','cdecl',
  61. 'const','constructor','default','destructor','div','do','downto',
  62. 'else','end','except','export','exports','external','far',
  63. 'finalization','finally','for','forward','function','goto','if',
  64. 'implementation','in','index','inherited','initialization','inline',
  65. 'interface','interrupt','label','library','mod','name','not','of',
  66. 'or','overload','override','private','procedure','program',
  67. 'property','protected','public','published','raise','repeat',
  68. 'resourcestring','shl','shr','stdcall','stored','switch','then',
  69. 'to','try','type','unit','until','uses','var','while','xor'
  70. ),
  71. 2 => array(
  72. 'nil', 'false', 'true',
  73. ),
  74. 3 => array(
  75. 'abs','and','arc','arctan','blockread','blockwrite','chr','dispose',
  76. 'cos','eof','eoln','exp','get','ln','new','odd','ord','ordinal',
  77. 'pred','read','readln','sin','sqrt','succ','write','writeln'
  78. ),
  79. 4 => array(
  80. 'ansistring','array','boolean','byte','bytebool','char','file',
  81. 'integer','longbool','longint','object','packed','pointer','real',
  82. 'record','set','shortint','smallint','string','union','word'
  83. ),
  84. ),
  85. 'SYMBOLS' => array(
  86. ',', ':', '=', '+', '-', '*', '/'
  87. ),
  88. 'CASE_SENSITIVE' => array(
  89. GESHI_COMMENTS => false,
  90. 1 => false,
  91. 2 => false,
  92. 3 => false,
  93. 4 => false,
  94. ),
  95. 'STYLES' => array(
  96. 'KEYWORDS' => array(
  97. 1 => 'color: #000000; font-weight: bold;',
  98. 2 => 'color: #000000; font-weight: bold;',
  99. 3 => 'color: #000066;',
  100. 4 => 'color: #000066; font-weight: bold;'
  101. ),
  102. 'COMMENTS' => array(
  103. 1 => 'color: #666666; font-style: italic;',
  104. 'MULTI' => 'color: #666666; font-style: italic;'
  105. ),
  106. 'ESCAPE_CHAR' => array(
  107. 0 => 'color: #000099; font-weight: bold;',
  108. 'HARD' => 'color: #000099; font-weight: bold;'
  109. ),
  110. 'BRACKETS' => array(
  111. 0 => 'color: #009900;'
  112. ),
  113. 'STRINGS' => array(
  114. 0 => 'color: #ff0000;',
  115. 'HARD' => 'color: #ff0000;'
  116. ),
  117. 'NUMBERS' => array(
  118. 0 => 'color: #cc66cc;'
  119. ),
  120. 'METHODS' => array(
  121. 1 => 'color: #0066ee;'
  122. ),
  123. 'SYMBOLS' => array(
  124. 0 => 'color: #339933;'
  125. ),
  126. 'REGEXPS' => array(
  127. ),
  128. 'SCRIPT' => array(
  129. )
  130. ),
  131. 'URLS' => array(
  132. 1 => '',
  133. 2 => '',
  134. 3 => '',
  135. 4 => ''
  136. ),
  137. 'OOLANG' => true,
  138. 'OBJECT_SPLITTERS' => array(
  139. 1 => '.'
  140. ),
  141. 'REGEXPS' => array(
  142. ),
  143. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  144. 'SCRIPT_DELIMITERS' => array(
  145. ),
  146. 'HIGHLIGHT_STRICT_BLOCK' => array(
  147. ),
  148. 'TAB_WIDTH' => 4
  149. );
  150. ?>