A tumblelog CMS built on AJAX, PHP and MySQL.

ada.php 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php
  2. /*************************************************************************************
  3. * ada.php
  4. * -------
  5. * Author: Tux (tux@inmail.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/29
  9. *
  10. * Ada language file for GeSHi.
  11. * Words are from SciTe configuration file
  12. *
  13. * CHANGES
  14. * -------
  15. * 2004/11/27 (1.0.2)
  16. * - Added support for multiple object splitters
  17. * 2004/10/27 (1.0.1)
  18. * - Removed apostrophe as string delimiter
  19. * - Added URL support
  20. * 2004/08/05 (1.0.0)
  21. * - First Release
  22. *
  23. * TODO (updated 2004/11/27)
  24. * -------------------------
  25. *
  26. *************************************************************************************
  27. *
  28. * This file is part of GeSHi.
  29. *
  30. * GeSHi is free software; you can redistribute it and/or modify
  31. * it under the terms of the GNU General Public License as published by
  32. * the Free Software Foundation; either version 2 of the License, or
  33. * (at your option) any later version.
  34. *
  35. * GeSHi is distributed in the hope that it will be useful,
  36. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  38. * GNU General Public License for more details.
  39. *
  40. * You should have received a copy of the GNU General Public License
  41. * along with GeSHi; if not, write to the Free Software
  42. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  43. *
  44. ************************************************************************************/
  45. $language_data = array (
  46. 'LANG_NAME' => 'Ada',
  47. 'COMMENT_SINGLE' => array(1 => '--'),
  48. 'COMMENT_MULTI' => array('/*' => '*/'),
  49. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50. 'QUOTEMARKS' => array('"'),
  51. 'ESCAPE_CHAR' => '\\',
  52. 'KEYWORDS' => array(
  53. 1 => array(
  54. 'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if',
  55. 'is', 'loop', 'while', 'then', 'is', 'end', 'select', 'case', 'while', 'until',
  56. 'goto', 'return'
  57. ),
  58. 2 => array(
  59. 'abs', 'and', 'mod', 'not', 'or', 'rem', 'xor'
  60. ),
  61. 3 => array(
  62. 'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array', 'at', 'body',
  63. 'constant', 'delay', 'delta', 'digits', 'entry', 'exit',
  64. 'function', 'generic', 'in', 'limited', 'new', 'null', 'of', 'others', 'out', 'package', 'pragma',
  65. 'private', 'procedure', 'protected', 'raise', 'range', 'record', 'renames', 'requeue', 'reverse',
  66. 'separate', 'subtype', 'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with'
  67. )
  68. ),
  69. 'SYMBOLS' => array(
  70. '(', ')'
  71. ),
  72. 'CASE_SENSITIVE' => array(
  73. GESHI_COMMENTS => true,
  74. 1 => false,
  75. 2 => false,
  76. 3 => false,
  77. ),
  78. 'STYLES' => array(
  79. 'KEYWORDS' => array(
  80. 1 => 'color: #00007f;',
  81. 2 => 'color: #0000ff;',
  82. 3 => 'color: #46aa03; font-weight:bold;',
  83. ),
  84. 'BRACKETS' => array(
  85. 0 => 'color: #66cc66;'
  86. ),
  87. 'COMMENTS' => array(
  88. 1 => 'color: #adadad; font-style: italic;',
  89. 'MULTI' => 'color: #808080; font-style: italic;'
  90. ),
  91. 'ESCAPE_CHAR' => array(
  92. 0 => 'color: #000099; font-weight: bold;'
  93. ),
  94. 'BRACKETS' => array(
  95. 0 => 'color: #66cc66;'
  96. ),
  97. 'STRINGS' => array(
  98. 0 => 'color: #7f007f;'
  99. ),
  100. 'NUMBERS' => array(
  101. 0 => 'color: #ff0000;'
  102. ),
  103. 'METHODS' => array(
  104. 1 => 'color: #202020;'
  105. ),
  106. 'SYMBOLS' => array(
  107. 0 => 'color: #66cc66;'
  108. ),
  109. 'REGEXPS' => array(
  110. ),
  111. 'SCRIPT' => array(
  112. )
  113. ),
  114. 'URLS' => array(
  115. 1 => '',
  116. 2 => '',
  117. 3 => ''
  118. ),
  119. 'OOLANG' => true,
  120. 'OBJECT_SPLITTERS' => array(
  121. 1 => '.'
  122. ),
  123. 'REGEXPS' => array(
  124. ),
  125. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  126. 'SCRIPT_DELIMITERS' => array(
  127. ),
  128. 'HIGHLIGHT_STRICT_BLOCK' => array(
  129. )
  130. );
  131. ?>