VBSCRIPT.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <?php
  2. /**
  3. * Auto-generated class. VBSCRIPT 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: : vbscript.xml,v 1.2 2008/01/02 00:05:52 ssttoo Exp
  19. * @author Daniel Fruzynski <daniel-AT-poradnik-webmastera.com>
  20. *
  21. */
  22. /**
  23. * Auto-generated class. VBSCRIPT syntax highlighting
  24. *
  25. * @author Daniel Fruzynski <daniel-AT-poradnik-webmastera.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_VBSCRIPT extends Text_Highlighter
  34. {
  35. var $_language = 'vbscript';
  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)\\()|((?i)")|((?i)\'|[Rr][Ee][Mm]\\b)|((?i)\\d*\\.?\\d+)|((?i)&H[0-9a-fA-F]+)|((?i)[a-z_]\\w*)/',
  47. 0 => '/((?i)\\()|((?i)")|((?i)\'|[Rr][Ee][Mm]\\b)|((?i)\\d*\\.?\\d+)|((?i)&H[0-9a-fA-F]+)|((?i)[a-z_]\\w*)/',
  48. 1 => '//',
  49. 2 => '/((?i)((https?|ftp):\\/\\/[\\w\\?\\.\\-\\&=\\/%+]+)|(^|[\\s,!?])www\\.\\w+\\.\\w+[\\w\\?\\.\\&=\\/%+]*)|((?i)\\w+[\\.\\w\\-]+@(\\w+[\\.\\w\\-])+)|((?i)\\b(note|fixme):)|((?i)\\$\\w+:.+\\$)/',
  50. );
  51. $this->_counts = array (
  52. -1 =>
  53. array (
  54. 0 => 0,
  55. 1 => 0,
  56. 2 => 0,
  57. 3 => 0,
  58. 4 => 0,
  59. 5 => 0,
  60. ),
  61. 0 =>
  62. array (
  63. 0 => 0,
  64. 1 => 0,
  65. 2 => 0,
  66. 3 => 0,
  67. 4 => 0,
  68. 5 => 0,
  69. ),
  70. 1 =>
  71. array (
  72. ),
  73. 2 =>
  74. array (
  75. 0 => 3,
  76. 1 => 1,
  77. 2 => 1,
  78. 3 => 0,
  79. ),
  80. );
  81. $this->_delim = array (
  82. -1 =>
  83. array (
  84. 0 => 'brackets',
  85. 1 => 'quotes',
  86. 2 => 'comment',
  87. 3 => '',
  88. 4 => '',
  89. 5 => '',
  90. ),
  91. 0 =>
  92. array (
  93. 0 => 'brackets',
  94. 1 => 'quotes',
  95. 2 => 'comment',
  96. 3 => '',
  97. 4 => '',
  98. 5 => '',
  99. ),
  100. 1 =>
  101. array (
  102. ),
  103. 2 =>
  104. array (
  105. 0 => '',
  106. 1 => '',
  107. 2 => '',
  108. 3 => '',
  109. ),
  110. );
  111. $this->_inner = array (
  112. -1 =>
  113. array (
  114. 0 => 'code',
  115. 1 => 'string',
  116. 2 => 'comment',
  117. 3 => 'number',
  118. 4 => 'number',
  119. 5 => 'identifier',
  120. ),
  121. 0 =>
  122. array (
  123. 0 => 'code',
  124. 1 => 'string',
  125. 2 => 'comment',
  126. 3 => 'number',
  127. 4 => 'number',
  128. 5 => 'identifier',
  129. ),
  130. 1 =>
  131. array (
  132. ),
  133. 2 =>
  134. array (
  135. 0 => 'url',
  136. 1 => 'url',
  137. 2 => 'inlinedoc',
  138. 3 => 'inlinedoc',
  139. ),
  140. );
  141. $this->_end = array (
  142. 0 => '/(?i)\\)/',
  143. 1 => '/(?i)"/',
  144. 2 => '/(?mi)$/',
  145. );
  146. $this->_states = array (
  147. -1 =>
  148. array (
  149. 0 => 0,
  150. 1 => 1,
  151. 2 => 2,
  152. 3 => -1,
  153. 4 => -1,
  154. 5 => -1,
  155. ),
  156. 0 =>
  157. array (
  158. 0 => 0,
  159. 1 => 1,
  160. 2 => 2,
  161. 3 => -1,
  162. 4 => -1,
  163. 5 => -1,
  164. ),
  165. 1 =>
  166. array (
  167. ),
  168. 2 =>
  169. array (
  170. 0 => -1,
  171. 1 => -1,
  172. 2 => -1,
  173. 3 => -1,
  174. ),
  175. );
  176. $this->_keywords = array (
  177. -1 =>
  178. array (
  179. 0 => -1,
  180. 1 => -1,
  181. 2 => -1,
  182. 3 =>
  183. array (
  184. ),
  185. 4 =>
  186. array (
  187. ),
  188. 5 =>
  189. array (
  190. 'constants' => '/^((?i)vbblack|vbred|vbgreen|vbyellow|vbblue|vbmagenta|vbcyan|vbwhite|vbbinarycompare|vbtextcompare|vbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbokonly|vbokcancel|vbabortretryignore|vbyesnocancel|vbyesno|vbretrycancel|vbcritical|vbquestion|vbexclamation|vbinformation|vbdefaultbutton1|vbdefaultbutton2|vbdefaultbutton3|vbdefaultbutton4|vbapplicationmodal|vbsystemmodal|vbok|vbcancel|vbabort|vbretry|vbignore|vbyes|vbno|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|vbtab|vbverticaltab|vbusedefault|vbtrue|vbfalse|vbempty|vbnull|vbinteger|vblong|vbsingle|vbdouble|vbcurrency|vbdate|vbstring|vbobject|vberror|vbboolean|vbvariant|vbdataobject|vbdecimal|vbbyte|vbarray)$/',
  191. 'functions' => '/^((?i)abs|array|asc|atn|cbool|cbyte|ccur|cdate|cdbl|chr|cint|clng|cos|createobject|csng|cstr|date|dateadd|datediff|datepart|dateserial|datevalue|day|escape|eval|exp|filter|formatcurrency|formatdatetime|formatnumber|formatpercent|getlocale|getobject|getref|hex|hour|inputbox|instr|instrrev|int|fix|isarray|isdate|isempty|isnull|isnumeric|isobject|join|lbound|lcase|left|len|loadpicture|log|ltrim|rtrim|trim|mid|minute|month|monthname|msgbox|now|oct|replace|rgb|right|rnd|round|scriptengine|scriptenginebuildversion|scriptenginemajorversion|scriptengineminorversion|second|setlocale|sgn|sin|space|split|sqr|strcomp|string|strreverse|tan|time|timer|timeserial|timevalue|typename|ubound|ucase|unescape|vartype|weekday|weekdayname|year)$/',
  192. 'builtin' => '/^((?i)debug|err|match|regexp)$/',
  193. 'reserved' => '/^((?i)empty|false|nothing|null|true|and|eqv|imp|is|mod|not|or|xor|call|class|end|const|public|private|dim|do|while|until|exit|loop|erase|execute|executeglobal|for|each|in|to|step|next|function|default|if|then|else|elseif|on|error|resume|goto|option|explicit|property|get|let|set|randomize|redim|preserve|select|case|stop|sub|wend|with)$/',
  194. ),
  195. ),
  196. 0 =>
  197. array (
  198. 0 => -1,
  199. 1 => -1,
  200. 2 => -1,
  201. 3 =>
  202. array (
  203. ),
  204. 4 =>
  205. array (
  206. ),
  207. 5 =>
  208. array (
  209. 'constants' => '/^((?i)vbblack|vbred|vbgreen|vbyellow|vbblue|vbmagenta|vbcyan|vbwhite|vbbinarycompare|vbtextcompare|vbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbokonly|vbokcancel|vbabortretryignore|vbyesnocancel|vbyesno|vbretrycancel|vbcritical|vbquestion|vbexclamation|vbinformation|vbdefaultbutton1|vbdefaultbutton2|vbdefaultbutton3|vbdefaultbutton4|vbapplicationmodal|vbsystemmodal|vbok|vbcancel|vbabort|vbretry|vbignore|vbyes|vbno|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|vbtab|vbverticaltab|vbusedefault|vbtrue|vbfalse|vbempty|vbnull|vbinteger|vblong|vbsingle|vbdouble|vbcurrency|vbdate|vbstring|vbobject|vberror|vbboolean|vbvariant|vbdataobject|vbdecimal|vbbyte|vbarray)$/',
  210. 'functions' => '/^((?i)abs|array|asc|atn|cbool|cbyte|ccur|cdate|cdbl|chr|cint|clng|cos|createobject|csng|cstr|date|dateadd|datediff|datepart|dateserial|datevalue|day|escape|eval|exp|filter|formatcurrency|formatdatetime|formatnumber|formatpercent|getlocale|getobject|getref|hex|hour|inputbox|instr|instrrev|int|fix|isarray|isdate|isempty|isnull|isnumeric|isobject|join|lbound|lcase|left|len|loadpicture|log|ltrim|rtrim|trim|mid|minute|month|monthname|msgbox|now|oct|replace|rgb|right|rnd|round|scriptengine|scriptenginebuildversion|scriptenginemajorversion|scriptengineminorversion|second|setlocale|sgn|sin|space|split|sqr|strcomp|string|strreverse|tan|time|timer|timeserial|timevalue|typename|ubound|ucase|unescape|vartype|weekday|weekdayname|year)$/',
  211. 'builtin' => '/^((?i)debug|err|match|regexp)$/',
  212. 'reserved' => '/^((?i)empty|false|nothing|null|true|and|eqv|imp|is|mod|not|or|xor|call|class|end|const|public|private|dim|do|while|until|exit|loop|erase|execute|executeglobal|for|each|in|to|step|next|function|default|if|then|else|elseif|on|error|resume|goto|option|explicit|property|get|let|set|randomize|redim|preserve|select|case|stop|sub|wend|with)$/',
  213. ),
  214. ),
  215. 1 =>
  216. array (
  217. ),
  218. 2 =>
  219. array (
  220. 0 =>
  221. array (
  222. ),
  223. 1 =>
  224. array (
  225. ),
  226. 2 =>
  227. array (
  228. ),
  229. 3 =>
  230. array (
  231. ),
  232. ),
  233. );
  234. $this->_parts = array (
  235. 0 =>
  236. array (
  237. 0 => NULL,
  238. 1 => NULL,
  239. 2 => NULL,
  240. 3 => NULL,
  241. 4 => NULL,
  242. 5 => NULL,
  243. ),
  244. 1 =>
  245. array (
  246. ),
  247. 2 =>
  248. array (
  249. 0 => NULL,
  250. 1 => NULL,
  251. 2 => NULL,
  252. 3 => NULL,
  253. ),
  254. );
  255. $this->_subst = array (
  256. -1 =>
  257. array (
  258. 0 => false,
  259. 1 => false,
  260. 2 => false,
  261. 3 => false,
  262. 4 => false,
  263. 5 => false,
  264. ),
  265. 0 =>
  266. array (
  267. 0 => false,
  268. 1 => false,
  269. 2 => false,
  270. 3 => false,
  271. 4 => false,
  272. 5 => false,
  273. ),
  274. 1 =>
  275. array (
  276. ),
  277. 2 =>
  278. array (
  279. 0 => false,
  280. 1 => false,
  281. 2 => false,
  282. 3 => false,
  283. ),
  284. );
  285. $this->_conditions = array (
  286. );
  287. $this->_kwmap = array (
  288. 'constants' => 'builtin',
  289. 'functions' => 'builtin',
  290. 'builtin' => 'builtin',
  291. 'reserved' => 'reserved',
  292. );
  293. $this->_defClass = 'code';
  294. $this->_checkDefines();
  295. }
  296. }