PageRenderTime 26ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 1ms

/external/libvpx/examples/includes/geshi/geshi/klonec.php

https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk
PHP | 282 lines | 223 code | 20 blank | 39 comment | 0 complexity | 646be4fff9a39f282e11d3cd72e9ebec MD5 | raw file
  1. <?php
  2. /*************************************************************************************
  3. * klonec.php
  4. * --------
  5. * Author: AUGER Mickael
  6. * Copyright: Synchronic
  7. * Release Version: 1.0.8.3
  8. * Date Started: 2008/04/16
  9. *
  10. * KLone with C language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/04/16 (1.0.8)
  15. * - First Release
  16. *
  17. * TODO (updated 2008/04/16)
  18. * -------------------------
  19. * A tester et a completer si besoin
  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' => 'KLone C',
  41. 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),//#pour precede les include de C
  42. 'COMMENT_MULTI' => array('/*' => '*/', '<!--' => '-->' ),//comentaires C et KLone suivi de ceux pour HTML
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 1 => array(//mots-cles C
  48. 'if', 'return', 'while', 'case', 'class', 'continue', 'default',
  49. 'do', 'else', 'for', 'switch', 'goto',
  50. 'null', 'break', 'true', 'enum', 'extern', 'inline', 'false'
  51. ),
  52. 2 => array(//mots-cles KLone
  53. 'out', 'request', 'response',
  54. ),
  55. 3 => array(//fonctions C usuelles
  56. 'printf', 'malloc', 'fopen', 'fclose', 'free', 'fputs', 'fgets', 'feof', 'fwrite',
  57. 'perror', 'ferror', 'qsort', 'stats', 'sscanf', 'scanf',
  58. 'strdup', 'strcpy', 'strcmp', 'strncpy', 'strcasecmp', 'cat', 'strcat', 'strstr',
  59. 'strlen', 'strtof', 'strtod', 'strtok', 'towlower', 'towupper',
  60. 'cd', 'system', 'exit', 'exec', 'fork', 'vfork', 'kill', 'signal', 'syslog',
  61. 'usleep', 'utime', 'wait', 'waitpid', 'waitid',
  62. 'ceil', 'eval', 'round', 'floor',
  63. 'atoi', 'atol', 'abs', 'cos', 'sin', 'tan', 'acos', 'asin', 'atan', 'exp',
  64. 'time', 'ctime', 'localtime', 'asctime', 'gmtime', 'difftime', 'date'
  65. ),
  66. 4 => array(//fonctions KLone usuelles
  67. 'request_get_cookies', 'request_get_cookie', 'request_get_args', 'request_get_arg',
  68. 'request_io', 'request_get_uri', 'request_get_filename', 'request_get_query_string', 'request_get_path_info',
  69. 'request_get_if_modified_since', 'request_get_http', 'request_get_client_request',
  70. 'request_get_content_length', 'request_get_uploads', 'request_get_uploaded_file',
  71. 'request_get_method', 'request_get_protocol', 'request_get_resolved_filename',
  72. 'request_get_resolved_path_info', 'request_get_addr', 'request_get_peer_addr',
  73. 'request_get_header', 'request_get_field', 'request_get_field_value',
  74. 'response_set_content_encoding', 'response_disable_caching', 'response_enable_caching',
  75. 'response_set_cookie', 'response_set_method', 'response_get_method',
  76. 'response_print_header', 'response_set_field', 'response_del_field',
  77. 'response_set_content_type', 'response_set_date', 'response_set_last_modified',
  78. 'response_set_content_length', 'response_get_status', 'response_get_header',
  79. 'response_io', 'response_redirect', 'response_set_status',
  80. 'session_get_vars', 'session_get', 'session_set', 'session_age', 'session_clean', 'session_del',
  81. 'io_type', 'io_pipe', 'io_dup', 'io_copy', 'io_seek', 'io_tell', 'io_close',
  82. 'io_free', 'io_read', 'io_printf', 'io_flush', 'io_write', 'io_putc', 'io_getc',
  83. 'io_get_until', 'io_gets', 'io_codec_add_head', 'io_codec_add_tail',
  84. 'io_codecs_remove', 'io_name_set', 'io_name_get'
  85. ),
  86. 5 => array(//types C
  87. 'auto', 'char', 'const', 'double', 'float', 'int', 'long',
  88. 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
  89. 'typedef', 'union', 'unsigned', 'void', 'volatile',
  90. 'wchar_t', 'time_t', 'FILE'
  91. ),
  92. 6 => array(//mots-cles HTML
  93. 'a', 'abbr', 'acronym', 'address', 'applet',
  94. 'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b',
  95. 'caption', 'center', 'cite', 'code', 'colgroup', 'col',
  96. 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt',
  97. 'em',
  98. 'fieldset', 'font', 'form', 'frame', 'frameset',
  99. 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html',
  100. 'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i',
  101. 'kbd',
  102. 'label', 'legend', 'link', 'li',
  103. 'map', 'meta',
  104. 'noframes', 'noscript',
  105. 'object', 'ol', 'optgroup', 'option',
  106. 'param', 'pre', 'p',
  107. 'q',
  108. 'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's',
  109. 'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt',
  110. 'ul', 'u',
  111. 'var',
  112. ),
  113. 7 => array(//autres mots-cles HTML
  114. 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
  115. 'background', 'bgcolor', 'border',
  116. 'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
  117. 'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
  118. 'enctype',
  119. 'face', 'for', 'frame', 'frameborder',
  120. 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
  121. 'id', 'ismap',
  122. 'label', 'lang', 'language', 'link', 'longdesc',
  123. 'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
  124. 'name', 'nohref', 'noresize', 'noshade', 'nowrap',
  125. 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
  126. 'profile', 'prompt',
  127. 'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
  128. 'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
  129. 'tabindex', 'target', 'text', 'title', 'type',
  130. 'usemap',
  131. 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
  132. 'width'
  133. )
  134. ),
  135. 'SYMBOLS' => array(
  136. 1 => array(
  137. '<%=', '<%!', '<%', '%>'
  138. ),
  139. 0 => array(
  140. '(', ')', '[', ']', '{', '}',
  141. '!', '%', '&', '|', '/',
  142. '<', '>',
  143. '=', '-', '+', '*',
  144. '.', ':', ',', ';', '^'
  145. )
  146. ),
  147. 'CASE_SENSITIVE' => array(
  148. GESHI_COMMENTS => false,
  149. 1 => false,
  150. 2 => false,
  151. 3 => false,
  152. 4 => false,
  153. 5 => false,
  154. 6 => false,
  155. 7 => false
  156. ),
  157. 'STYLES' => array(
  158. 'KEYWORDS' => array(
  159. 1 => 'color: #b1b100; font-weight: bold;',//pour les mots-cles C
  160. 2 => 'color: #000000; font-weight: bold;',//pour les mots-cles KLone
  161. 3 => 'color: #6600FF;',//pour les fonctions C
  162. 4 => 'color: #6600FF;',//pour les fonctions Klone
  163. 5 => 'color: #0099FF; font-weight: bold;',//pour les types C
  164. 6 => 'color: #990099; font-weight: bold;',//pour les mots-cles HTML
  165. 7 => 'color: #000066;'//pour les autres mots-cles HTML
  166. ),
  167. 'COMMENTS' => array(
  168. 1 => 'color: #808080; font-style: italic;',//commentaire sur une ligne C et KLone
  169. 2 => 'color: #339933;',//pour les #... en C
  170. 'MULTI' => 'color: #808080; font-style: italic;'//commentaire sur plusieurs lignes C et KLone
  171. ),
  172. 'ESCAPE_CHAR' => array(
  173. 0 => 'color: #000099; font-weight: bold;'
  174. ),
  175. 'BRACKETS' => array(
  176. 0 => 'color: #000000;'
  177. ),
  178. 'STRINGS' => array(
  179. 0 => 'color: #ff0000;'
  180. ),
  181. 'NUMBERS' => array(
  182. 0 => 'color: #cc66cc;'
  183. ),
  184. 'METHODS' => array(
  185. 1 => 'color: #006600;',
  186. 2 => 'color: #006600;'
  187. ),
  188. 'SYMBOLS' => array(
  189. 0 => 'color: #000000;',
  190. 1 => 'color: #000000; font-weight: bold;'
  191. ),
  192. 'REGEXPS' => array(),
  193. 'SCRIPT' => array(
  194. 0 => 'background-color:#ffccff; font-weight: bold; color:#000000;',
  195. 1 => '',
  196. 2 => '',
  197. 3 => 'color: #00bbdd; font-weight: bold;',
  198. 4 => 'color: #ddbb00;',
  199. 5 => 'color: #009900;'
  200. )
  201. ),
  202. 'URLS' => array(
  203. 1 => '',
  204. 2 => '',
  205. 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html',
  206. 4 => 'http://www.koanlogic.com/klone/api/html/globals.html',
  207. 5 => '',
  208. 6 => 'http://december.com/html/4/element/{FNAMEL}.html',
  209. 7 => ''
  210. ),
  211. 'OOLANG' => true,
  212. 'OBJECT_SPLITTERS' => array(
  213. 1 => '.',
  214. 2 => '::'
  215. ),
  216. 'REGEXPS' => array(
  217. ),
  218. 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
  219. 'SCRIPT_DELIMITERS' => array(
  220. //delimiteurs pour KLone
  221. 0 => array(
  222. '<%=' => '%>'
  223. ),
  224. 1 => array(
  225. '<%!' => '%>'
  226. ),
  227. 2 => array(
  228. '<%' => '%>'
  229. ),
  230. //delimiteur pour HTML
  231. 3 => array(
  232. '<!DOCTYPE' => '>'
  233. ),
  234. 4 => array(
  235. '&' => ';'
  236. ),
  237. 5 => array(
  238. '<' => '>'
  239. )
  240. ),
  241. 'HIGHLIGHT_STRICT_BLOCK' => array(
  242. 0 => false,
  243. 1 => true,
  244. 2 => true,
  245. 3 => false,
  246. 4 => false,
  247. 5 => true
  248. ),
  249. 'TAB_WIDTH' => 4,
  250. 'PARSER_CONTROL' => array(
  251. 'KEYWORDS' => array(
  252. 6 => array(
  253. 'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
  254. 'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
  255. ),
  256. 7 => array(
  257. 'DISALLOWED_AFTER' => '(?=\s*=)',
  258. )
  259. )
  260. )
  261. );
  262. ?>