SH.php 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207
  1. <?php
  2. /**
  3. * Auto-generated class. SH syntax highlighting
  4. *
  5. * This highlighter is EXPERIMENTAL. It may work incorrectly.
  6. * It is a crude hack of the perl syntax, which itself wasn't so good.
  7. * But this seems to work OK.
  8. *
  9. *
  10. * PHP version 4 and 5
  11. *
  12. * LICENSE: This source file is subject to version 3.0 of the PHP license
  13. * that is available through the world-wide-web at the following URI:
  14. * http://www.php.net/license/3_0.txt. If you did not receive a copy of
  15. * the PHP License and are unable to obtain it through the web, please
  16. * send a note to license@php.net so we can mail you a copy immediately.
  17. *
  18. * @copyright 2004-2006 Andrey Demenev
  19. * @license http://www.php.net/license/3_0.txt PHP License
  20. * @link http://pear.php.net/package/Text_Highlighter
  21. * @category Text
  22. * @package Text_Highlighter
  23. * @version generated from: : sh.xml,v 1.2 2007/06/14 00:15:50 ssttoo Exp
  24. * @author Noah Spurrier <noah@noah.org>
  25. *
  26. */
  27. /**
  28. * Auto-generated class. SH syntax highlighting
  29. *
  30. * @author Noah Spurrier <noah@noah.org>
  31. * @category Text
  32. * @package Text_Highlighter
  33. * @copyright 2004-2006 Andrey Demenev
  34. * @license http://www.php.net/license/3_0.txt PHP License
  35. * @version Release: 0.7.1
  36. * @link http://pear.php.net/package/Text_Highlighter
  37. */
  38. class Text_Highlighter_SH extends Text_Highlighter
  39. {
  40. var $_language = 'sh';
  41. /**
  42. * Constructor
  43. *
  44. * @param array $options
  45. * @access public
  46. */
  47. function __construct($options=array())
  48. {
  49. $this->_options = $options;
  50. $this->_regs = array (
  51. -1 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
  52. 0 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
  53. 1 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|((?i)([a-z1-9_]+)(\\s*=>))|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
  54. 2 => '/((?m)^(#!)(.*))|(\\{)|(\\()|(\\[)|((use)\\s+([\\w:]*))|((?Us)\\b(q[wq]\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|((?Us)\\b(q\\s*((\\{)|(\\()|(\\[)|(\\<)|([\\W\\S])))(?=(.*)((?(3)\\})(?(4)\\))(?(5)\\])(?(6)\\>)(?(7)\\7))))|(#.*)|((?x)(s|tr) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2)((\\\\.|[^\\\\])*?)(\\2[ecgimosx]*))|((?x)(m) ([|#~`!@$%^&*-+=\\\\;:\'",.\\/?]) ((\\\\.|[^\\\\])*?) (\\2[ecgimosx]*))|( \\/)|(\\$#?[1-9\'`@!])|((?i)(\\$#?|[@%*])([a-z1-9_]+::)*([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)(\\{)([a-z1-9]+)(\\}))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(`)|(\')|(")|((?i)[a-z_]\\w*)|(\\d*\\.?\\d+)/',
  55. 3 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
  56. 4 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
  57. 5 => '/(\\\\\\/)/',
  58. 6 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
  59. 7 => '/(\\\\\\\\|\\\\"|\\\\\'|\\\\`)/',
  60. 8 => '/(\\$#?[1-9\'`@!])|((?i)\\$([a-z1-9_]+|\\^(?-i)[A-Z]?(?i)))|((?i)[\\$@%]#?\\{[a-z1-9]+\\})|(\\\\[\\\\"\'`tnr\\$\\{@])/',
  61. );
  62. $this->_counts = array (
  63. -1 =>
  64. array (
  65. 0 => 2,
  66. 1 => 0,
  67. 2 => 0,
  68. 3 => 0,
  69. 4 => 2,
  70. 5 => 9,
  71. 6 => 9,
  72. 7 => 0,
  73. 8 => 8,
  74. 9 => 5,
  75. 10 => 0,
  76. 11 => 0,
  77. 12 => 3,
  78. 13 => 1,
  79. 14 => 3,
  80. 15 => 0,
  81. 16 => 0,
  82. 17 => 0,
  83. 18 => 0,
  84. 19 => 0,
  85. 20 => 0,
  86. ),
  87. 0 =>
  88. array (
  89. 0 => 2,
  90. 1 => 0,
  91. 2 => 0,
  92. 3 => 0,
  93. 4 => 2,
  94. 5 => 9,
  95. 6 => 9,
  96. 7 => 0,
  97. 8 => 8,
  98. 9 => 5,
  99. 10 => 0,
  100. 11 => 0,
  101. 12 => 3,
  102. 13 => 1,
  103. 14 => 3,
  104. 15 => 0,
  105. 16 => 0,
  106. 17 => 0,
  107. 18 => 0,
  108. 19 => 0,
  109. 20 => 0,
  110. ),
  111. 1 =>
  112. array (
  113. 0 => 2,
  114. 1 => 0,
  115. 2 => 0,
  116. 3 => 0,
  117. 4 => 2,
  118. 5 => 9,
  119. 6 => 9,
  120. 7 => 0,
  121. 8 => 8,
  122. 9 => 5,
  123. 10 => 0,
  124. 11 => 2,
  125. 12 => 0,
  126. 13 => 3,
  127. 14 => 1,
  128. 15 => 3,
  129. 16 => 0,
  130. 17 => 0,
  131. 18 => 0,
  132. 19 => 0,
  133. 20 => 0,
  134. 21 => 0,
  135. ),
  136. 2 =>
  137. array (
  138. 0 => 2,
  139. 1 => 0,
  140. 2 => 0,
  141. 3 => 0,
  142. 4 => 2,
  143. 5 => 9,
  144. 6 => 9,
  145. 7 => 0,
  146. 8 => 8,
  147. 9 => 5,
  148. 10 => 0,
  149. 11 => 0,
  150. 12 => 3,
  151. 13 => 1,
  152. 14 => 3,
  153. 15 => 0,
  154. 16 => 0,
  155. 17 => 0,
  156. 18 => 0,
  157. 19 => 0,
  158. 20 => 0,
  159. ),
  160. 3 =>
  161. array (
  162. 0 => 0,
  163. 1 => 1,
  164. 2 => 0,
  165. 3 => 0,
  166. ),
  167. 4 =>
  168. array (
  169. 0 => 0,
  170. ),
  171. 5 =>
  172. array (
  173. 0 => 0,
  174. ),
  175. 6 =>
  176. array (
  177. 0 => 0,
  178. 1 => 1,
  179. 2 => 0,
  180. 3 => 0,
  181. ),
  182. 7 =>
  183. array (
  184. 0 => 0,
  185. ),
  186. 8 =>
  187. array (
  188. 0 => 0,
  189. 1 => 1,
  190. 2 => 0,
  191. 3 => 0,
  192. ),
  193. );
  194. $this->_delim = array (
  195. -1 =>
  196. array (
  197. 0 => '',
  198. 1 => 'brackets',
  199. 2 => 'brackets',
  200. 3 => 'brackets',
  201. 4 => '',
  202. 5 => 'quotes',
  203. 6 => 'quotes',
  204. 7 => '',
  205. 8 => '',
  206. 9 => '',
  207. 10 => 'quotes',
  208. 11 => '',
  209. 12 => '',
  210. 13 => '',
  211. 14 => '',
  212. 15 => '',
  213. 16 => 'quotes',
  214. 17 => 'quotes',
  215. 18 => 'quotes',
  216. 19 => '',
  217. 20 => '',
  218. ),
  219. 0 =>
  220. array (
  221. 0 => '',
  222. 1 => 'brackets',
  223. 2 => 'brackets',
  224. 3 => 'brackets',
  225. 4 => '',
  226. 5 => 'quotes',
  227. 6 => 'quotes',
  228. 7 => '',
  229. 8 => '',
  230. 9 => '',
  231. 10 => 'quotes',
  232. 11 => '',
  233. 12 => '',
  234. 13 => '',
  235. 14 => '',
  236. 15 => '',
  237. 16 => 'quotes',
  238. 17 => 'quotes',
  239. 18 => 'quotes',
  240. 19 => '',
  241. 20 => '',
  242. ),
  243. 1 =>
  244. array (
  245. 0 => '',
  246. 1 => 'brackets',
  247. 2 => 'brackets',
  248. 3 => 'brackets',
  249. 4 => '',
  250. 5 => 'quotes',
  251. 6 => 'quotes',
  252. 7 => '',
  253. 8 => '',
  254. 9 => '',
  255. 10 => 'quotes',
  256. 11 => '',
  257. 12 => '',
  258. 13 => '',
  259. 14 => '',
  260. 15 => '',
  261. 16 => '',
  262. 17 => 'quotes',
  263. 18 => 'quotes',
  264. 19 => 'quotes',
  265. 20 => '',
  266. 21 => '',
  267. ),
  268. 2 =>
  269. array (
  270. 0 => '',
  271. 1 => 'brackets',
  272. 2 => 'brackets',
  273. 3 => 'brackets',
  274. 4 => '',
  275. 5 => 'quotes',
  276. 6 => 'quotes',
  277. 7 => '',
  278. 8 => '',
  279. 9 => '',
  280. 10 => 'quotes',
  281. 11 => '',
  282. 12 => '',
  283. 13 => '',
  284. 14 => '',
  285. 15 => '',
  286. 16 => 'quotes',
  287. 17 => 'quotes',
  288. 18 => 'quotes',
  289. 19 => '',
  290. 20 => '',
  291. ),
  292. 3 =>
  293. array (
  294. 0 => '',
  295. 1 => '',
  296. 2 => '',
  297. 3 => '',
  298. ),
  299. 4 =>
  300. array (
  301. 0 => '',
  302. ),
  303. 5 =>
  304. array (
  305. 0 => '',
  306. ),
  307. 6 =>
  308. array (
  309. 0 => '',
  310. 1 => '',
  311. 2 => '',
  312. 3 => '',
  313. ),
  314. 7 =>
  315. array (
  316. 0 => '',
  317. ),
  318. 8 =>
  319. array (
  320. 0 => '',
  321. 1 => '',
  322. 2 => '',
  323. 3 => '',
  324. ),
  325. );
  326. $this->_inner = array (
  327. -1 =>
  328. array (
  329. 0 => 'special',
  330. 1 => 'code',
  331. 2 => 'code',
  332. 3 => 'code',
  333. 4 => 'special',
  334. 5 => 'string',
  335. 6 => 'string',
  336. 7 => 'comment',
  337. 8 => 'string',
  338. 9 => 'string',
  339. 10 => 'string',
  340. 11 => 'var',
  341. 12 => 'var',
  342. 13 => 'var',
  343. 14 => 'var',
  344. 15 => 'var',
  345. 16 => 'string',
  346. 17 => 'string',
  347. 18 => 'string',
  348. 19 => 'identifier',
  349. 20 => 'number',
  350. ),
  351. 0 =>
  352. array (
  353. 0 => 'special',
  354. 1 => 'code',
  355. 2 => 'code',
  356. 3 => 'code',
  357. 4 => 'special',
  358. 5 => 'string',
  359. 6 => 'string',
  360. 7 => 'comment',
  361. 8 => 'string',
  362. 9 => 'string',
  363. 10 => 'string',
  364. 11 => 'var',
  365. 12 => 'var',
  366. 13 => 'var',
  367. 14 => 'var',
  368. 15 => 'var',
  369. 16 => 'string',
  370. 17 => 'string',
  371. 18 => 'string',
  372. 19 => 'identifier',
  373. 20 => 'number',
  374. ),
  375. 1 =>
  376. array (
  377. 0 => 'special',
  378. 1 => 'code',
  379. 2 => 'code',
  380. 3 => 'code',
  381. 4 => 'special',
  382. 5 => 'string',
  383. 6 => 'string',
  384. 7 => 'comment',
  385. 8 => 'string',
  386. 9 => 'string',
  387. 10 => 'string',
  388. 11 => 'string',
  389. 12 => 'var',
  390. 13 => 'var',
  391. 14 => 'var',
  392. 15 => 'var',
  393. 16 => 'var',
  394. 17 => 'string',
  395. 18 => 'string',
  396. 19 => 'string',
  397. 20 => 'identifier',
  398. 21 => 'number',
  399. ),
  400. 2 =>
  401. array (
  402. 0 => 'special',
  403. 1 => 'code',
  404. 2 => 'code',
  405. 3 => 'code',
  406. 4 => 'special',
  407. 5 => 'string',
  408. 6 => 'string',
  409. 7 => 'comment',
  410. 8 => 'string',
  411. 9 => 'string',
  412. 10 => 'string',
  413. 11 => 'var',
  414. 12 => 'var',
  415. 13 => 'var',
  416. 14 => 'var',
  417. 15 => 'var',
  418. 16 => 'string',
  419. 17 => 'string',
  420. 18 => 'string',
  421. 19 => 'identifier',
  422. 20 => 'number',
  423. ),
  424. 3 =>
  425. array (
  426. 0 => 'var',
  427. 1 => 'var',
  428. 2 => 'var',
  429. 3 => 'special',
  430. ),
  431. 4 =>
  432. array (
  433. 0 => 'special',
  434. ),
  435. 5 =>
  436. array (
  437. 0 => 'string',
  438. ),
  439. 6 =>
  440. array (
  441. 0 => 'var',
  442. 1 => 'var',
  443. 2 => 'var',
  444. 3 => 'special',
  445. ),
  446. 7 =>
  447. array (
  448. 0 => 'special',
  449. ),
  450. 8 =>
  451. array (
  452. 0 => 'var',
  453. 1 => 'var',
  454. 2 => 'var',
  455. 3 => 'special',
  456. ),
  457. );
  458. $this->_end = array (
  459. 0 => '/\\}/',
  460. 1 => '/\\)/',
  461. 2 => '/\\]/',
  462. 3 => '/%b2%/',
  463. 4 => '/%b2%/',
  464. 5 => '/\\/[cgimosx]*/',
  465. 6 => '/`/',
  466. 7 => '/\'/',
  467. 8 => '/"/',
  468. );
  469. $this->_states = array (
  470. -1 =>
  471. array (
  472. 0 => -1,
  473. 1 => 0,
  474. 2 => 1,
  475. 3 => 2,
  476. 4 => -1,
  477. 5 => 3,
  478. 6 => 4,
  479. 7 => -1,
  480. 8 => -1,
  481. 9 => -1,
  482. 10 => 5,
  483. 11 => -1,
  484. 12 => -1,
  485. 13 => -1,
  486. 14 => -1,
  487. 15 => -1,
  488. 16 => 6,
  489. 17 => 7,
  490. 18 => 8,
  491. 19 => -1,
  492. 20 => -1,
  493. ),
  494. 0 =>
  495. array (
  496. 0 => -1,
  497. 1 => 0,
  498. 2 => 1,
  499. 3 => 2,
  500. 4 => -1,
  501. 5 => 3,
  502. 6 => 4,
  503. 7 => -1,
  504. 8 => -1,
  505. 9 => -1,
  506. 10 => 5,
  507. 11 => -1,
  508. 12 => -1,
  509. 13 => -1,
  510. 14 => -1,
  511. 15 => -1,
  512. 16 => 6,
  513. 17 => 7,
  514. 18 => 8,
  515. 19 => -1,
  516. 20 => -1,
  517. ),
  518. 1 =>
  519. array (
  520. 0 => -1,
  521. 1 => 0,
  522. 2 => 1,
  523. 3 => 2,
  524. 4 => -1,
  525. 5 => 3,
  526. 6 => 4,
  527. 7 => -1,
  528. 8 => -1,
  529. 9 => -1,
  530. 10 => 5,
  531. 11 => -1,
  532. 12 => -1,
  533. 13 => -1,
  534. 14 => -1,
  535. 15 => -1,
  536. 16 => -1,
  537. 17 => 6,
  538. 18 => 7,
  539. 19 => 8,
  540. 20 => -1,
  541. 21 => -1,
  542. ),
  543. 2 =>
  544. array (
  545. 0 => -1,
  546. 1 => 0,
  547. 2 => 1,
  548. 3 => 2,
  549. 4 => -1,
  550. 5 => 3,
  551. 6 => 4,
  552. 7 => -1,
  553. 8 => -1,
  554. 9 => -1,
  555. 10 => 5,
  556. 11 => -1,
  557. 12 => -1,
  558. 13 => -1,
  559. 14 => -1,
  560. 15 => -1,
  561. 16 => 6,
  562. 17 => 7,
  563. 18 => 8,
  564. 19 => -1,
  565. 20 => -1,
  566. ),
  567. 3 =>
  568. array (
  569. 0 => -1,
  570. 1 => -1,
  571. 2 => -1,
  572. 3 => -1,
  573. ),
  574. 4 =>
  575. array (
  576. 0 => -1,
  577. ),
  578. 5 =>
  579. array (
  580. 0 => -1,
  581. ),
  582. 6 =>
  583. array (
  584. 0 => -1,
  585. 1 => -1,
  586. 2 => -1,
  587. 3 => -1,
  588. ),
  589. 7 =>
  590. array (
  591. 0 => -1,
  592. ),
  593. 8 =>
  594. array (
  595. 0 => -1,
  596. 1 => -1,
  597. 2 => -1,
  598. 3 => -1,
  599. ),
  600. );
  601. $this->_keywords = array (
  602. -1 =>
  603. array (
  604. 0 =>
  605. array (
  606. ),
  607. 1 => -1,
  608. 2 => -1,
  609. 3 => -1,
  610. 4 =>
  611. array (
  612. ),
  613. 5 => -1,
  614. 6 => -1,
  615. 7 =>
  616. array (
  617. ),
  618. 8 =>
  619. array (
  620. ),
  621. 9 =>
  622. array (
  623. ),
  624. 10 => -1,
  625. 11 =>
  626. array (
  627. ),
  628. 12 =>
  629. array (
  630. ),
  631. 13 =>
  632. array (
  633. ),
  634. 14 =>
  635. array (
  636. ),
  637. 15 =>
  638. array (
  639. ),
  640. 16 => -1,
  641. 17 => -1,
  642. 18 => -1,
  643. 19 =>
  644. array (
  645. 'reserved' => '/^(cd|cp|rm|echo|printf|exit|cut|join|comm|fmt|grep|egrep|fgrep|sed|awk|yes|false|true|test|expr|tee|basename|dirname|pathchk|pwd|stty|tty|env|printenv|id|logname|whoami|groups|users|who|date|uname|hostname|chroot|nice|nohup|sleep|factor|seq|getopt|getopts|options|shift)$/',
  646. 'flowcontrol' => '/^(if|fi|then|else|elif|case|esac|while|done|for|in|function|until|do|select|time|read|set)$/',
  647. ),
  648. 20 =>
  649. array (
  650. ),
  651. ),
  652. 0 =>
  653. array (
  654. 0 =>
  655. array (
  656. ),
  657. 1 => -1,
  658. 2 => -1,
  659. 3 => -1,
  660. 4 =>
  661. array (
  662. ),
  663. 5 => -1,
  664. 6 => -1,
  665. 7 =>
  666. array (
  667. ),
  668. 8 =>
  669. array (
  670. ),
  671. 9 =>
  672. array (
  673. ),
  674. 10 => -1,
  675. 11 =>
  676. array (
  677. ),
  678. 12 =>
  679. array (
  680. ),
  681. 13 =>
  682. array (
  683. ),
  684. 14 =>
  685. array (
  686. ),
  687. 15 =>
  688. array (
  689. ),
  690. 16 => -1,
  691. 17 => -1,
  692. 18 => -1,
  693. 19 =>
  694. array (
  695. 'reserved' => '/^(cd|cp|rm|echo|printf|exit|cut|join|comm|fmt|grep|egrep|fgrep|sed|awk|yes|false|true|test|expr|tee|basename|dirname|pathchk|pwd|stty|tty|env|printenv|id|logname|whoami|groups|users|who|date|uname|hostname|chroot|nice|nohup|sleep|factor|seq|getopt|getopts|options|shift)$/',
  696. 'flowcontrol' => '/^(if|fi|then|else|elif|case|esac|while|done|for|in|function|until|do|select|time|read|set)$/',
  697. ),
  698. 20 =>
  699. array (
  700. ),
  701. ),
  702. 1 =>
  703. array (
  704. 0 =>
  705. array (
  706. ),
  707. 1 => -1,
  708. 2 => -1,
  709. 3 => -1,
  710. 4 =>
  711. array (
  712. ),
  713. 5 => -1,
  714. 6 => -1,
  715. 7 =>
  716. array (
  717. ),
  718. 8 =>
  719. array (
  720. ),
  721. 9 =>
  722. array (
  723. ),
  724. 10 => -1,
  725. 11 =>
  726. array (
  727. ),
  728. 12 =>
  729. array (
  730. ),
  731. 13 =>
  732. array (
  733. ),
  734. 14 =>
  735. array (
  736. ),
  737. 15 =>
  738. array (
  739. ),
  740. 16 =>
  741. array (
  742. ),
  743. 17 => -1,
  744. 18 => -1,
  745. 19 => -1,
  746. 20 =>
  747. array (
  748. 'reserved' => '/^(cd|cp|rm|echo|printf|exit|cut|join|comm|fmt|grep|egrep|fgrep|sed|awk|yes|false|true|test|expr|tee|basename|dirname|pathchk|pwd|stty|tty|env|printenv|id|logname|whoami|groups|users|who|date|uname|hostname|chroot|nice|nohup|sleep|factor|seq|getopt|getopts|options|shift)$/',
  749. 'flowcontrol' => '/^(if|fi|then|else|elif|case|esac|while|done|for|in|function|until|do|select|time|read|set)$/',
  750. ),
  751. 21 =>
  752. array (
  753. ),
  754. ),
  755. 2 =>
  756. array (
  757. 0 =>
  758. array (
  759. ),
  760. 1 => -1,
  761. 2 => -1,
  762. 3 => -1,
  763. 4 =>
  764. array (
  765. ),
  766. 5 => -1,
  767. 6 => -1,
  768. 7 =>
  769. array (
  770. ),
  771. 8 =>
  772. array (
  773. ),
  774. 9 =>
  775. array (
  776. ),
  777. 10 => -1,
  778. 11 =>
  779. array (
  780. ),
  781. 12 =>
  782. array (
  783. ),
  784. 13 =>
  785. array (
  786. ),
  787. 14 =>
  788. array (
  789. ),
  790. 15 =>
  791. array (
  792. ),
  793. 16 => -1,
  794. 17 => -1,
  795. 18 => -1,
  796. 19 =>
  797. array (
  798. 'reserved' => '/^(cd|cp|rm|echo|printf|exit|cut|join|comm|fmt|grep|egrep|fgrep|sed|awk|yes|false|true|test|expr|tee|basename|dirname|pathchk|pwd|stty|tty|env|printenv|id|logname|whoami|groups|users|who|date|uname|hostname|chroot|nice|nohup|sleep|factor|seq|getopt|getopts|options|shift)$/',
  799. 'flowcontrol' => '/^(if|fi|then|else|elif|case|esac|while|done|for|in|function|until|do|select|time|read|set)$/',
  800. ),
  801. 20 =>
  802. array (
  803. ),
  804. ),
  805. 3 =>
  806. array (
  807. 0 =>
  808. array (
  809. ),
  810. 1 =>
  811. array (
  812. ),
  813. 2 =>
  814. array (
  815. ),
  816. 3 =>
  817. array (
  818. ),
  819. ),
  820. 4 =>
  821. array (
  822. 0 =>
  823. array (
  824. ),
  825. ),
  826. 5 =>
  827. array (
  828. 0 =>
  829. array (
  830. ),
  831. ),
  832. 6 =>
  833. array (
  834. 0 =>
  835. array (
  836. ),
  837. 1 =>
  838. array (
  839. ),
  840. 2 =>
  841. array (
  842. ),
  843. 3 =>
  844. array (
  845. ),
  846. ),
  847. 7 =>
  848. array (
  849. 0 =>
  850. array (
  851. ),
  852. ),
  853. 8 =>
  854. array (
  855. 0 =>
  856. array (
  857. ),
  858. 1 =>
  859. array (
  860. ),
  861. 2 =>
  862. array (
  863. ),
  864. 3 =>
  865. array (
  866. ),
  867. ),
  868. );
  869. $this->_parts = array (
  870. 0 =>
  871. array (
  872. 0 =>
  873. array (
  874. 1 => 'special',
  875. 2 => 'string',
  876. ),
  877. 1 => NULL,
  878. 2 => NULL,
  879. 3 => NULL,
  880. 4 =>
  881. array (
  882. 1 => 'reserved',
  883. 2 => 'special',
  884. ),
  885. 5 => NULL,
  886. 6 => NULL,
  887. 7 => NULL,
  888. 8 =>
  889. array (
  890. 1 => 'quotes',
  891. 2 => 'quotes',
  892. 3 => 'string',
  893. 5 => 'quotes',
  894. 6 => 'string',
  895. 8 => 'quotes',
  896. ),
  897. 9 =>
  898. array (
  899. 1 => 'quotes',
  900. 2 => 'quotes',
  901. 3 => 'string',
  902. 5 => 'quotes',
  903. ),
  904. 10 => NULL,
  905. 11 => NULL,
  906. 12 => NULL,
  907. 13 => NULL,
  908. 14 =>
  909. array (
  910. 1 => 'brackets',
  911. 2 => 'var',
  912. 3 => 'brackets',
  913. ),
  914. 15 => NULL,
  915. 16 => NULL,
  916. 17 => NULL,
  917. 18 => NULL,
  918. 19 => NULL,
  919. 20 => NULL,
  920. ),
  921. 1 =>
  922. array (
  923. 0 =>
  924. array (
  925. 1 => 'special',
  926. 2 => 'string',
  927. ),
  928. 1 => NULL,
  929. 2 => NULL,
  930. 3 => NULL,
  931. 4 =>
  932. array (
  933. 1 => 'reserved',
  934. 2 => 'special',
  935. ),
  936. 5 => NULL,
  937. 6 => NULL,
  938. 7 => NULL,
  939. 8 =>
  940. array (
  941. 1 => 'quotes',
  942. 2 => 'quotes',
  943. 3 => 'string',
  944. 5 => 'quotes',
  945. 6 => 'string',
  946. 8 => 'quotes',
  947. ),
  948. 9 =>
  949. array (
  950. 1 => 'quotes',
  951. 2 => 'quotes',
  952. 3 => 'string',
  953. 5 => 'quotes',
  954. ),
  955. 10 => NULL,
  956. 11 =>
  957. array (
  958. 1 => 'string',
  959. 2 => 'code',
  960. ),
  961. 12 => NULL,
  962. 13 => NULL,
  963. 14 => NULL,
  964. 15 =>
  965. array (
  966. 1 => 'brackets',
  967. 2 => 'var',
  968. 3 => 'brackets',
  969. ),
  970. 16 => NULL,
  971. 17 => NULL,
  972. 18 => NULL,
  973. 19 => NULL,
  974. 20 => NULL,
  975. 21 => NULL,
  976. ),
  977. 2 =>
  978. array (
  979. 0 =>
  980. array (
  981. 1 => 'special',
  982. 2 => 'string',
  983. ),
  984. 1 => NULL,
  985. 2 => NULL,
  986. 3 => NULL,
  987. 4 =>
  988. array (
  989. 1 => 'reserved',
  990. 2 => 'special',
  991. ),
  992. 5 => NULL,
  993. 6 => NULL,
  994. 7 => NULL,
  995. 8 =>
  996. array (
  997. 1 => 'quotes',
  998. 2 => 'quotes',
  999. 3 => 'string',
  1000. 5 => 'quotes',
  1001. 6 => 'string',
  1002. 8 => 'quotes',
  1003. ),
  1004. 9 =>
  1005. array (
  1006. 1 => 'quotes',
  1007. 2 => 'quotes',
  1008. 3 => 'string',
  1009. 5 => 'quotes',
  1010. ),
  1011. 10 => NULL,
  1012. 11 => NULL,
  1013. 12 => NULL,
  1014. 13 => NULL,
  1015. 14 =>
  1016. array (
  1017. 1 => 'brackets',
  1018. 2 => 'var',
  1019. 3 => 'brackets',
  1020. ),
  1021. 15 => NULL,
  1022. 16 => NULL,
  1023. 17 => NULL,
  1024. 18 => NULL,
  1025. 19 => NULL,
  1026. 20 => NULL,
  1027. ),
  1028. 3 =>
  1029. array (
  1030. 0 => NULL,
  1031. 1 => NULL,
  1032. 2 => NULL,
  1033. 3 => NULL,
  1034. ),
  1035. 4 =>
  1036. array (
  1037. 0 => NULL,
  1038. ),
  1039. 5 =>
  1040. array (
  1041. 0 => NULL,
  1042. ),
  1043. 6 =>
  1044. array (
  1045. 0 => NULL,
  1046. 1 => NULL,
  1047. 2 => NULL,
  1048. 3 => NULL,
  1049. ),
  1050. 7 =>
  1051. array (
  1052. 0 => NULL,
  1053. ),
  1054. 8 =>
  1055. array (
  1056. 0 => NULL,
  1057. 1 => NULL,
  1058. 2 => NULL,
  1059. 3 => NULL,
  1060. ),
  1061. );
  1062. $this->_subst = array (
  1063. -1 =>
  1064. array (
  1065. 0 => false,
  1066. 1 => false,
  1067. 2 => false,
  1068. 3 => false,
  1069. 4 => false,
  1070. 5 => true,
  1071. 6 => true,
  1072. 7 => false,
  1073. 8 => false,
  1074. 9 => false,
  1075. 10 => false,
  1076. 11 => false,
  1077. 12 => false,
  1078. 13 => false,
  1079. 14 => false,
  1080. 15 => false,
  1081. 16 => false,
  1082. 17 => false,
  1083. 18 => false,
  1084. 19 => false,
  1085. 20 => false,
  1086. ),
  1087. 0 =>
  1088. array (
  1089. 0 => false,
  1090. 1 => false,
  1091. 2 => false,
  1092. 3 => false,
  1093. 4 => false,
  1094. 5 => true,
  1095. 6 => true,
  1096. 7 => false,
  1097. 8 => false,
  1098. 9 => false,
  1099. 10 => false,
  1100. 11 => false,
  1101. 12 => false,
  1102. 13 => false,
  1103. 14 => false,
  1104. 15 => false,
  1105. 16 => false,
  1106. 17 => false,
  1107. 18 => false,
  1108. 19 => false,
  1109. 20 => false,
  1110. ),
  1111. 1 =>
  1112. array (
  1113. 0 => false,
  1114. 1 => false,
  1115. 2 => false,
  1116. 3 => false,
  1117. 4 => false,
  1118. 5 => true,
  1119. 6 => true,
  1120. 7 => false,
  1121. 8 => false,
  1122. 9 => false,
  1123. 10 => false,
  1124. 11 => false,
  1125. 12 => false,
  1126. 13 => false,
  1127. 14 => false,
  1128. 15 => false,
  1129. 16 => false,
  1130. 17 => false,
  1131. 18 => false,
  1132. 19 => false,
  1133. 20 => false,
  1134. 21 => false,
  1135. ),
  1136. 2 =>
  1137. array (
  1138. 0 => false,
  1139. 1 => false,
  1140. 2 => false,
  1141. 3 => false,
  1142. 4 => false,
  1143. 5 => true,
  1144. 6 => true,
  1145. 7 => false,
  1146. 8 => false,
  1147. 9 => false,
  1148. 10 => false,
  1149. 11 => false,
  1150. 12 => false,
  1151. 13 => false,
  1152. 14 => false,
  1153. 15 => false,
  1154. 16 => false,
  1155. 17 => false,
  1156. 18 => false,
  1157. 19 => false,
  1158. 20 => false,
  1159. ),
  1160. 3 =>
  1161. array (
  1162. 0 => false,
  1163. 1 => false,
  1164. 2 => false,
  1165. 3 => false,
  1166. ),
  1167. 4 =>
  1168. array (
  1169. 0 => false,
  1170. ),
  1171. 5 =>
  1172. array (
  1173. 0 => false,
  1174. ),
  1175. 6 =>
  1176. array (
  1177. 0 => false,
  1178. 1 => false,
  1179. 2 => false,
  1180. 3 => false,
  1181. ),
  1182. 7 =>
  1183. array (
  1184. 0 => false,
  1185. ),
  1186. 8 =>
  1187. array (
  1188. 0 => false,
  1189. 1 => false,
  1190. 2 => false,
  1191. 3 => false,
  1192. ),
  1193. );
  1194. $this->_conditions = array (
  1195. );
  1196. $this->_kwmap = array (
  1197. 'reserved' => 'reserved',
  1198. 'flowcontrol' => 'reserved',
  1199. );
  1200. $this->_defClass = 'code';
  1201. $this->_checkDefines();
  1202. }
  1203. }