XML.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?php
  2. /**
  3. * Auto-generated class. XML syntax highlighting
  4. *
  5. * PHP version 4 and 5
  6. *
  7. * LICENSE: This source file is subject to version 3.0 of the PHP license
  8. * that is available through the world-wide-web at the following URI:
  9. * http://www.php.net/license/3_0.txt. If you did not receive a copy of
  10. * the PHP License and are unable to obtain it through the web, please
  11. * send a note to license@php.net so we can mail you a copy immediately.
  12. *
  13. * @copyright 2004-2006 Andrey Demenev
  14. * @license http://www.php.net/license/3_0.txt PHP License
  15. * @link http://pear.php.net/package/Text_Highlighter
  16. * @category Text
  17. * @package Text_Highlighter
  18. * @version generated from: : xml.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp
  19. * @author Andrey Demenev <demenev@gmail.com>
  20. *
  21. */
  22. /**
  23. * Auto-generated class. XML syntax highlighting
  24. *
  25. * @author Andrey Demenev <demenev@gmail.com>
  26. * @category Text
  27. * @package Text_Highlighter
  28. * @copyright 2004-2006 Andrey Demenev
  29. * @license http://www.php.net/license/3_0.txt PHP License
  30. * @version Release: 0.7.1
  31. * @link http://pear.php.net/package/Text_Highlighter
  32. */
  33. class Text_Highlighter_XML extends Text_Highlighter
  34. {
  35. var $_language = 'xml';
  36. /**
  37. * Constructor
  38. *
  39. * @param array $options
  40. * @access public
  41. */
  42. function __construct($options=array())
  43. {
  44. $this->_options = $options;
  45. $this->_regs = array (
  46. -1 => '/((?i)\\<\\!\\[CDATA\\[)|((?i)\\<!--)|((?i)\\<[\\?\\/]?)|((?i)(&|%)[\\w\\-\\.]+;)/',
  47. 0 => '//',
  48. 1 => '//',
  49. 2 => '/((?i)(?<=[\\<\\/?])[\\w\\-\\:]+)|((?i)[\\w\\-\\:]+)|((?i)")/',
  50. 3 => '/((?i)(&|%)[\\w\\-\\.]+;)/',
  51. );
  52. $this->_counts = array (
  53. -1 =>
  54. array (
  55. 0 => 0,
  56. 1 => 0,
  57. 2 => 0,
  58. 3 => 1,
  59. ),
  60. 0 =>
  61. array (
  62. ),
  63. 1 =>
  64. array (
  65. ),
  66. 2 =>
  67. array (
  68. 0 => 0,
  69. 1 => 0,
  70. 2 => 0,
  71. ),
  72. 3 =>
  73. array (
  74. 0 => 1,
  75. ),
  76. );
  77. $this->_delim = array (
  78. -1 =>
  79. array (
  80. 0 => 'comment',
  81. 1 => 'comment',
  82. 2 => 'brackets',
  83. 3 => '',
  84. ),
  85. 0 =>
  86. array (
  87. ),
  88. 1 =>
  89. array (
  90. ),
  91. 2 =>
  92. array (
  93. 0 => '',
  94. 1 => '',
  95. 2 => 'quotes',
  96. ),
  97. 3 =>
  98. array (
  99. 0 => '',
  100. ),
  101. );
  102. $this->_inner = array (
  103. -1 =>
  104. array (
  105. 0 => 'comment',
  106. 1 => 'comment',
  107. 2 => 'code',
  108. 3 => 'special',
  109. ),
  110. 0 =>
  111. array (
  112. ),
  113. 1 =>
  114. array (
  115. ),
  116. 2 =>
  117. array (
  118. 0 => 'reserved',
  119. 1 => 'var',
  120. 2 => 'string',
  121. ),
  122. 3 =>
  123. array (
  124. 0 => 'special',
  125. ),
  126. );
  127. $this->_end = array (
  128. 0 => '/(?i)\\]\\]\\>/',
  129. 1 => '/(?i)--\\>/',
  130. 2 => '/(?i)[\\/\\?]?\\>/',
  131. 3 => '/(?i)"/',
  132. );
  133. $this->_states = array (
  134. -1 =>
  135. array (
  136. 0 => 0,
  137. 1 => 1,
  138. 2 => 2,
  139. 3 => -1,
  140. ),
  141. 0 =>
  142. array (
  143. ),
  144. 1 =>
  145. array (
  146. ),
  147. 2 =>
  148. array (
  149. 0 => -1,
  150. 1 => -1,
  151. 2 => 3,
  152. ),
  153. 3 =>
  154. array (
  155. 0 => -1,
  156. ),
  157. );
  158. $this->_keywords = array (
  159. -1 =>
  160. array (
  161. 0 => -1,
  162. 1 => -1,
  163. 2 => -1,
  164. 3 =>
  165. array (
  166. ),
  167. ),
  168. 0 =>
  169. array (
  170. ),
  171. 1 =>
  172. array (
  173. ),
  174. 2 =>
  175. array (
  176. 0 =>
  177. array (
  178. ),
  179. 1 =>
  180. array (
  181. ),
  182. 2 => -1,
  183. ),
  184. 3 =>
  185. array (
  186. 0 =>
  187. array (
  188. ),
  189. ),
  190. );
  191. $this->_parts = array (
  192. 0 =>
  193. array (
  194. ),
  195. 1 =>
  196. array (
  197. ),
  198. 2 =>
  199. array (
  200. 0 => NULL,
  201. 1 => NULL,
  202. 2 => NULL,
  203. ),
  204. 3 =>
  205. array (
  206. 0 => NULL,
  207. ),
  208. );
  209. $this->_subst = array (
  210. -1 =>
  211. array (
  212. 0 => false,
  213. 1 => false,
  214. 2 => false,
  215. 3 => false,
  216. ),
  217. 0 =>
  218. array (
  219. ),
  220. 1 =>
  221. array (
  222. ),
  223. 2 =>
  224. array (
  225. 0 => false,
  226. 1 => false,
  227. 2 => false,
  228. ),
  229. 3 =>
  230. array (
  231. 0 => false,
  232. ),
  233. );
  234. $this->_conditions = array (
  235. );
  236. $this->_kwmap = array (
  237. );
  238. $this->_defClass = 'code';
  239. $this->_checkDefines();
  240. }
  241. }