A tumblelog CMS built on AJAX, PHP and MySQL.

eiffel.php 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <?php
  2. /*************************************************************************************
  3. * eiffel.php
  4. * ----------
  5. * Author: Zoran Simic (zsimic@axarosenberg.com)
  6. * Copyright: (c) 2005 Zoran Simic
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2005/06/30
  9. *
  10. * Eiffel language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2005/06/30 (1.0.7)
  15. * - Initial release
  16. *
  17. * TODO (updated 2005/06/30)
  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' => 'Eiffel',
  41. 'COMMENT_SINGLE' => array(1 => '--'),
  42. 'COMMENT_MULTI' => array(),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '%',
  46. 'KEYWORDS' => array(
  47. 1 => array(
  48. 'separate',
  49. 'invariant',
  50. 'inherit',
  51. 'indexing',
  52. 'feature',
  53. 'expanded',
  54. 'deferred',
  55. 'class'
  56. ),
  57. 2 => array(
  58. 'xor',
  59. 'when',
  60. 'variant',
  61. 'until',
  62. 'unique',
  63. 'undefine',
  64. 'then',
  65. 'strip',
  66. 'select',
  67. 'retry',
  68. 'rescue',
  69. 'require',
  70. 'rename',
  71. 'reference',
  72. 'redefine',
  73. 'prefix',
  74. 'or',
  75. 'once',
  76. 'old',
  77. 'obsolete',
  78. 'not',
  79. 'loop',
  80. 'local',
  81. 'like',
  82. 'is',
  83. 'inspect',
  84. 'infix',
  85. 'include',
  86. 'implies',
  87. 'if',
  88. 'frozen',
  89. 'from',
  90. 'external',
  91. 'export',
  92. 'ensure',
  93. 'end',
  94. 'elseif',
  95. 'else',
  96. 'do',
  97. 'creation',
  98. 'create',
  99. 'check',
  100. 'as',
  101. 'and',
  102. 'alias',
  103. 'agent'
  104. ),
  105. 3 => array(
  106. 'Void',
  107. 'True',
  108. 'Result',
  109. 'Precursor',
  110. 'False',
  111. 'Current'
  112. ),
  113. 4 => array(
  114. 'UNIX_SIGNALS',
  115. 'UNIX_FILE_INFO',
  116. 'UNBOUNDED',
  117. 'TWO_WAY_TREE_CURSOR',
  118. 'TWO_WAY_TREE',
  119. 'TWO_WAY_SORTED_SET',
  120. 'TWO_WAY_LIST',
  121. 'TWO_WAY_CURSOR_TREE',
  122. 'TWO_WAY_CIRCULAR',
  123. 'TWO_WAY_CHAIN_ITERATOR',
  124. 'TUPLE',
  125. 'TREE',
  126. 'TRAVERSABLE',
  127. 'TO_SPECIAL',
  128. 'THREAD_CONTROL',
  129. 'THREAD_ATTRIBUTES',
  130. 'THREAD',
  131. 'TABLE',
  132. 'SUBSET',
  133. 'STRING_HANDLER',
  134. 'STRING',
  135. 'STREAM',
  136. 'STORABLE',
  137. 'STD_FILES',
  138. 'STACK',
  139. 'SPECIAL',
  140. 'SORTED_TWO_WAY_LIST',
  141. 'SORTED_STRUCT',
  142. 'SORTED_LIST',
  143. 'SINGLE_MATH',
  144. 'SET',
  145. 'SEQUENCE',
  146. 'SEQ_STRING',
  147. 'SEMAPHORE',
  148. 'ROUTINE',
  149. 'RESIZABLE',
  150. 'RECURSIVE_TREE_CURSOR',
  151. 'RECURSIVE_CURSOR_TREE',
  152. 'REAL_REF',
  153. 'REAL',
  154. 'RAW_FILE',
  155. 'RANDOM',
  156. 'QUEUE',
  157. 'PROXY',
  158. 'PROFILING_SETTING',
  159. 'PROCEDURE',
  160. 'PRIORITY_QUEUE',
  161. 'PRIMES',
  162. 'PRECOMP',
  163. 'POINTER_REF',
  164. 'POINTER',
  165. 'PLATFORM',
  166. 'PLAIN_TEXT_FILE',
  167. 'PATH_NAME',
  168. 'PART_SORTED_TWO_WAY_LIST',
  169. 'PART_SORTED_SET',
  170. 'PART_SORTED_LIST',
  171. 'PART_COMPARABLE',
  172. 'OPERATING_ENVIRONMENT',
  173. 'ONCE_CONTROL',
  174. 'OBJECT_OWNER',
  175. 'OBJECT_CONTROL',
  176. 'NUMERIC',
  177. 'NONE',
  178. 'MUTEX',
  179. 'MULTI_ARRAY_LIST',
  180. 'MULTAR_LIST_CURSOR',
  181. 'MEMORY',
  182. 'MEM_INFO',
  183. 'MEM_CONST',
  184. 'MATH_CONST',
  185. 'LIST',
  186. 'LINKED_TREE_CURSOR',
  187. 'LINKED_TREE',
  188. 'LINKED_STACK',
  189. 'LINKED_SET',
  190. 'LINKED_QUEUE',
  191. 'LINKED_PRIORITY_QUEUE',
  192. 'LINKED_LIST_CURSOR',
  193. 'LINKED_LIST',
  194. 'LINKED_CURSOR_TREE',
  195. 'LINKED_CIRCULAR',
  196. 'LINKABLE',
  197. 'LINEAR_ITERATOR',
  198. 'LINEAR',
  199. 'ITERATOR',
  200. 'IO_MEDIUM',
  201. 'INTERNAL',
  202. 'INTEGER_REF',
  203. 'INTEGER_INTERVAL',
  204. 'INTEGER',
  205. 'INFINITE',
  206. 'INDEXABLE',
  207. 'IDENTIFIED_CONTROLLER',
  208. 'IDENTIFIED',
  209. 'HIERARCHICAL',
  210. 'HEAP_PRIORITY_QUEUE',
  211. 'HASHABLE',
  212. 'HASH_TABLE_CURSOR',
  213. 'HASH_TABLE',
  214. 'GENERAL',
  215. 'GC_INFO',
  216. 'FUNCTION',
  217. 'FORMAT_INTEGER',
  218. 'FORMAT_DOUBLE',
  219. 'FIXED_TREE',
  220. 'FIXED_LIST',
  221. 'FIXED',
  222. 'FINITE',
  223. 'FILE_NAME',
  224. 'FILE',
  225. 'FIBONACCI',
  226. 'EXECUTION_ENVIRONMENT',
  227. 'EXCEPTIONS',
  228. 'EXCEP_CONST',
  229. 'DYNAMIC_TREE',
  230. 'DYNAMIC_LIST',
  231. 'DYNAMIC_CIRCULAR',
  232. 'DYNAMIC_CHAIN',
  233. 'DOUBLE_REF',
  234. 'DOUBLE_MATH',
  235. 'DOUBLE',
  236. 'DISPENSER',
  237. 'DIRECTORY_NAME',
  238. 'DIRECTORY',
  239. 'DECLARATOR',
  240. 'DEBUG_OUTPUT',
  241. 'CURSOR_TREE_ITERATOR',
  242. 'CURSOR_TREE',
  243. 'CURSOR_STRUCTURE',
  244. 'CURSOR',
  245. 'COUNTABLE_SEQUENCE',
  246. 'COUNTABLE',
  247. 'CONTAINER',
  248. 'CONSOLE',
  249. 'CONDITION_VARIABLE',
  250. 'COMPARABLE_STRUCT',
  251. 'COMPARABLE_SET',
  252. 'COMPARABLE',
  253. 'COMPACT_TREE_CURSOR',
  254. 'COMPACT_CURSOR_TREE',
  255. 'COLLECTION',
  256. 'CIRCULAR_CURSOR',
  257. 'CIRCULAR',
  258. 'CHARACTER_REF',
  259. 'CHARACTER',
  260. 'CHAIN',
  261. 'CELL',
  262. 'BOX',
  263. 'BOUNDED_STACK',
  264. 'BOUNDED_QUEUE',
  265. 'BOUNDED',
  266. 'BOOLEAN_REF',
  267. 'BOOLEAN',
  268. 'BOOL_STRING',
  269. 'BIT_REF',
  270. 'BINARY_TREE',
  271. 'BINARY_SEARCH_TREE_SET',
  272. 'BINARY_SEARCH_TREE',
  273. 'BILINEAR',
  274. 'BI_LINKABLE',
  275. 'BASIC_ROUTINES',
  276. 'BAG',
  277. 'ASCII',
  278. 'ARRAYED_TREE',
  279. 'ARRAYED_STACK',
  280. 'ARRAYED_QUEUE',
  281. 'ARRAYED_LIST_CURSOR',
  282. 'ARRAYED_LIST',
  283. 'ARRAYED_CIRCULAR',
  284. 'ARRAY2',
  285. 'ARRAY',
  286. 'ARGUMENTS',
  287. 'ANY',
  288. 'ACTIVE'
  289. ),
  290. 5 => array(
  291. 'yes',
  292. 'visible',
  293. 'trace',
  294. 'system',
  295. 'root',
  296. 'profile',
  297. 'override_cluster',
  298. 'object',
  299. 'no',
  300. 'multithreaded',
  301. 'msil_generation_type',
  302. 'line_generation',
  303. 'library',
  304. 'inlining_size',
  305. 'inlining',
  306. 'include_path',
  307. 'il_verifiable',
  308. 'exclude',
  309. 'exception_trace',
  310. 'dynamic_runtime',
  311. 'dotnet_naming_convention',
  312. 'disabled_debug',
  313. 'default',
  314. 'debug',
  315. 'dead_code_removal',
  316. 'console_application',
  317. 'cluster',
  318. 'cls_compliant',
  319. 'check_vape',
  320. 'assertion',
  321. 'array_optimization',
  322. 'all',
  323. 'address_expression'
  324. ),
  325. ),
  326. 'SYMBOLS' => array(
  327. '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
  328. '(', ')', '{', '}', '[', ']', '#'
  329. ),
  330. 'CASE_SENSITIVE' => array(
  331. GESHI_COMMENTS => true,
  332. 1 => false,
  333. 2 => false,
  334. 3 => false,
  335. 4 => true,
  336. 5 => false,
  337. ),
  338. 'STYLES' => array(
  339. 'KEYWORDS' => array(
  340. 1 => 'color: #0600FF; font-weight: bold;',
  341. 2 => 'color: #0600FF; font-weight: bold;',
  342. 3 => 'color: #800080;',
  343. 4 => 'color: #800000',
  344. 5 => 'color: #603000;'
  345. ),
  346. 'COMMENTS' => array(
  347. 1 => 'color: #008000; font-style: italic;',
  348. 'MULTI' => ''
  349. ),
  350. 'ESCAPE_CHAR' => array(
  351. 0 => 'color: #005070; font-weight: bold;'
  352. ),
  353. 'BRACKETS' => array(
  354. 0 => 'color: #FF0000;'
  355. ),
  356. 'STRINGS' => array(
  357. 0 => 'color: #0080A0;'
  358. ),
  359. 'NUMBERS' => array(
  360. 0 => 'color: #FF0000;'
  361. ),
  362. 'METHODS' => array(
  363. 1 => 'color: #000060;',
  364. 2 => 'color: #000050;'
  365. ),
  366. 'SYMBOLS' => array(
  367. 0 => 'color: #600000;'
  368. ),
  369. 'REGEXPS' => array(
  370. ),
  371. 'SCRIPT' => array(
  372. )
  373. ),
  374. 'URLS' => array(
  375. 1 => '',
  376. 2 => '',
  377. 3 => '',
  378. 4 => 'http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fdocs.eiffel.com%2Feiffelstudio%2Flibraries+{FNAME}&btnI=I%27m+Feeling+Lucky'
  379. ),
  380. 'OOLANG' => true,
  381. 'OBJECT_SPLITTERS' => array(
  382. 1 => '.'
  383. ),
  384. 'REGEXPS' => array(
  385. ),
  386. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  387. 'SCRIPT_DELIMITERS' => array(
  388. ),
  389. 'HIGHLIGHT_STRICT_BLOCK' => array(
  390. )
  391. );