A tumblelog CMS built on AJAX, PHP and MySQL.

pascal.php 4.2KB

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