DTD.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. <?php
  2. /**
  3. * Auto-generated class. DTD 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: : dtd.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. DTD 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_DTD extends Text_Highlighter
  34. {
  35. var $_language = 'dtd';
  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 => '/(\\<!--)|(\\<\\!\\[)|((\\&|\\%)[\\w\\-\\.]+;)/',
  47. 0 => '//',
  48. 1 => '/(\\<!--)|(\\<)|(#PCDATA\\b)|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
  49. 2 => '/(\\<!--)|(\\()|(\')|(")|((?<=\\<)!(ENTITY|ATTLIST|ELEMENT|NOTATION)\\b)|(\\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\\b)|(#PCDATA\\b)|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
  50. 3 => '/(\\()|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
  51. 4 => '/((\\&|\\%)[\\w\\-\\.]+;)/',
  52. 5 => '/((\\&|\\%)[\\w\\-\\.]+;)/',
  53. );
  54. $this->_counts = array (
  55. -1 =>
  56. array (
  57. 0 => 0,
  58. 1 => 0,
  59. 2 => 1,
  60. ),
  61. 0 =>
  62. array (
  63. ),
  64. 1 =>
  65. array (
  66. 0 => 0,
  67. 1 => 0,
  68. 2 => 0,
  69. 3 => 1,
  70. 4 => 0,
  71. ),
  72. 2 =>
  73. array (
  74. 0 => 0,
  75. 1 => 0,
  76. 2 => 0,
  77. 3 => 0,
  78. 4 => 1,
  79. 5 => 2,
  80. 6 => 0,
  81. 7 => 1,
  82. 8 => 0,
  83. ),
  84. 3 =>
  85. array (
  86. 0 => 0,
  87. 1 => 1,
  88. 2 => 0,
  89. ),
  90. 4 =>
  91. array (
  92. 0 => 1,
  93. ),
  94. 5 =>
  95. array (
  96. 0 => 1,
  97. ),
  98. );
  99. $this->_delim = array (
  100. -1 =>
  101. array (
  102. 0 => 'comment',
  103. 1 => 'brackets',
  104. 2 => '',
  105. ),
  106. 0 =>
  107. array (
  108. ),
  109. 1 =>
  110. array (
  111. 0 => 'comment',
  112. 1 => 'brackets',
  113. 2 => '',
  114. 3 => '',
  115. 4 => '',
  116. ),
  117. 2 =>
  118. array (
  119. 0 => 'comment',
  120. 1 => 'brackets',
  121. 2 => 'quotes',
  122. 3 => 'quotes',
  123. 4 => '',
  124. 5 => '',
  125. 6 => '',
  126. 7 => '',
  127. 8 => '',
  128. ),
  129. 3 =>
  130. array (
  131. 0 => 'brackets',
  132. 1 => '',
  133. 2 => '',
  134. ),
  135. 4 =>
  136. array (
  137. 0 => '',
  138. ),
  139. 5 =>
  140. array (
  141. 0 => '',
  142. ),
  143. );
  144. $this->_inner = array (
  145. -1 =>
  146. array (
  147. 0 => 'comment',
  148. 1 => 'code',
  149. 2 => 'special',
  150. ),
  151. 0 =>
  152. array (
  153. ),
  154. 1 =>
  155. array (
  156. 0 => 'comment',
  157. 1 => 'code',
  158. 2 => 'reserved',
  159. 3 => 'special',
  160. 4 => 'identifier',
  161. ),
  162. 2 =>
  163. array (
  164. 0 => 'comment',
  165. 1 => 'code',
  166. 2 => 'string',
  167. 3 => 'string',
  168. 4 => 'var',
  169. 5 => 'reserved',
  170. 6 => 'reserved',
  171. 7 => 'special',
  172. 8 => 'identifier',
  173. ),
  174. 3 =>
  175. array (
  176. 0 => 'code',
  177. 1 => 'special',
  178. 2 => 'identifier',
  179. ),
  180. 4 =>
  181. array (
  182. 0 => 'special',
  183. ),
  184. 5 =>
  185. array (
  186. 0 => 'special',
  187. ),
  188. );
  189. $this->_end = array (
  190. 0 => '/--\\>/',
  191. 1 => '/\\]\\]\\>/',
  192. 2 => '/\\>/',
  193. 3 => '/\\)/',
  194. 4 => '/\'/',
  195. 5 => '/"/',
  196. );
  197. $this->_states = array (
  198. -1 =>
  199. array (
  200. 0 => 0,
  201. 1 => 1,
  202. 2 => -1,
  203. ),
  204. 0 =>
  205. array (
  206. ),
  207. 1 =>
  208. array (
  209. 0 => 0,
  210. 1 => 2,
  211. 2 => -1,
  212. 3 => -1,
  213. 4 => -1,
  214. ),
  215. 2 =>
  216. array (
  217. 0 => 0,
  218. 1 => 3,
  219. 2 => 4,
  220. 3 => 5,
  221. 4 => -1,
  222. 5 => -1,
  223. 6 => -1,
  224. 7 => -1,
  225. 8 => -1,
  226. ),
  227. 3 =>
  228. array (
  229. 0 => 3,
  230. 1 => -1,
  231. 2 => -1,
  232. ),
  233. 4 =>
  234. array (
  235. 0 => -1,
  236. ),
  237. 5 =>
  238. array (
  239. 0 => -1,
  240. ),
  241. );
  242. $this->_keywords = array (
  243. -1 =>
  244. array (
  245. 0 => -1,
  246. 1 => -1,
  247. 2 =>
  248. array (
  249. ),
  250. ),
  251. 0 =>
  252. array (
  253. ),
  254. 1 =>
  255. array (
  256. 0 => -1,
  257. 1 => -1,
  258. 2 =>
  259. array (
  260. ),
  261. 3 =>
  262. array (
  263. ),
  264. 4 =>
  265. array (
  266. ),
  267. ),
  268. 2 =>
  269. array (
  270. 0 => -1,
  271. 1 => -1,
  272. 2 => -1,
  273. 3 => -1,
  274. 4 =>
  275. array (
  276. ),
  277. 5 =>
  278. array (
  279. ),
  280. 6 =>
  281. array (
  282. ),
  283. 7 =>
  284. array (
  285. ),
  286. 8 =>
  287. array (
  288. ),
  289. ),
  290. 3 =>
  291. array (
  292. 0 => -1,
  293. 1 =>
  294. array (
  295. ),
  296. 2 =>
  297. array (
  298. ),
  299. ),
  300. 4 =>
  301. array (
  302. 0 =>
  303. array (
  304. ),
  305. ),
  306. 5 =>
  307. array (
  308. 0 =>
  309. array (
  310. ),
  311. ),
  312. );
  313. $this->_parts = array (
  314. 0 =>
  315. array (
  316. ),
  317. 1 =>
  318. array (
  319. 0 => NULL,
  320. 1 => NULL,
  321. 2 => NULL,
  322. 3 => NULL,
  323. 4 => NULL,
  324. ),
  325. 2 =>
  326. array (
  327. 0 => NULL,
  328. 1 => NULL,
  329. 2 => NULL,
  330. 3 => NULL,
  331. 4 => NULL,
  332. 5 => NULL,
  333. 6 => NULL,
  334. 7 => NULL,
  335. 8 => NULL,
  336. ),
  337. 3 =>
  338. array (
  339. 0 => NULL,
  340. 1 => NULL,
  341. 2 => NULL,
  342. ),
  343. 4 =>
  344. array (
  345. 0 => NULL,
  346. ),
  347. 5 =>
  348. array (
  349. 0 => NULL,
  350. ),
  351. );
  352. $this->_subst = array (
  353. -1 =>
  354. array (
  355. 0 => false,
  356. 1 => false,
  357. 2 => false,
  358. ),
  359. 0 =>
  360. array (
  361. ),
  362. 1 =>
  363. array (
  364. 0 => false,
  365. 1 => false,
  366. 2 => false,
  367. 3 => false,
  368. 4 => false,
  369. ),
  370. 2 =>
  371. array (
  372. 0 => false,
  373. 1 => false,
  374. 2 => false,
  375. 3 => false,
  376. 4 => false,
  377. 5 => false,
  378. 6 => false,
  379. 7 => false,
  380. 8 => false,
  381. ),
  382. 3 =>
  383. array (
  384. 0 => false,
  385. 1 => false,
  386. 2 => false,
  387. ),
  388. 4 =>
  389. array (
  390. 0 => false,
  391. ),
  392. 5 =>
  393. array (
  394. 0 => false,
  395. ),
  396. );
  397. $this->_conditions = array (
  398. );
  399. $this->_kwmap = array (
  400. );
  401. $this->_defClass = 'code';
  402. $this->_checkDefines();
  403. }
  404. }