home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Text / Highlighter / VBSCRIPT.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  11.7 KB  |  318 lines

  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. /**
  24.  * @ignore
  25.  */
  26.  
  27. require_once 'Text/Highlighter.php';
  28.  
  29. /**
  30.  * Auto-generated class. VBSCRIPT syntax highlighting
  31.  *
  32.  * @author Daniel Fruzynski <daniel-AT-poradnik-webmastera.com>
  33.  * @category   Text
  34.  * @package    Text_Highlighter
  35.  * @copyright  2004-2006 Andrey Demenev
  36.  * @license    http://www.php.net/license/3_0.txt  PHP License
  37.  * @version    Release: 0.7.1
  38.  * @link       http://pear.php.net/package/Text_Highlighter
  39.  */
  40. class  Text_Highlighter_VBSCRIPT extends Text_Highlighter
  41. {
  42.     var $_language = 'vbscript';
  43.  
  44.     /**
  45.      * PHP4 Compatible Constructor
  46.      *
  47.      * @param array  $options
  48.      * @access public
  49.      */
  50.     function Text_Highlighter_VBSCRIPT($options=array())
  51.     {
  52.         $this->__construct($options);
  53.     }
  54.  
  55.  
  56.     /**
  57.      *  Constructor
  58.      *
  59.      * @param array  $options
  60.      * @access public
  61.      */
  62.     function __construct($options=array())
  63.     {
  64.  
  65.         $this->_options = $options;
  66.         $this->_regs = array (
  67.             -1 => '/((?i)\\()|((?i)")|((?i)\'|[Rr][Ee][Mm]\\b)|((?i)\\d*\\.?\\d+)|((?i)&H[0-9a-fA-F]+)|((?i)[a-z_]\\w*)/',
  68.             0 => '/((?i)\\()|((?i)")|((?i)\'|[Rr][Ee][Mm]\\b)|((?i)\\d*\\.?\\d+)|((?i)&H[0-9a-fA-F]+)|((?i)[a-z_]\\w*)/',
  69.             1 => '//',
  70.             2 => '/((?i)((https?|ftp):\\/\\/[\\w\\?\\.\\-\\&=\\/%+]+)|(^|[\\s,!?])www\\.\\w+\\.\\w+[\\w\\?\\.\\&=\\/%+]*)|((?i)\\w+[\\.\\w\\-]+@(\\w+[\\.\\w\\-])+)|((?i)\\b(note|fixme):)|((?i)\\$\\w+:.+\\$)/',
  71.         );
  72.         $this->_counts = array (
  73.             -1 => 
  74.             array (
  75.                 0 => 0,
  76.                 1 => 0,
  77.                 2 => 0,
  78.                 3 => 0,
  79.                 4 => 0,
  80.                 5 => 0,
  81.             ),
  82.             0 => 
  83.             array (
  84.                 0 => 0,
  85.                 1 => 0,
  86.                 2 => 0,
  87.                 3 => 0,
  88.                 4 => 0,
  89.                 5 => 0,
  90.             ),
  91.             1 => 
  92.             array (
  93.             ),
  94.             2 => 
  95.             array (
  96.                 0 => 3,
  97.                 1 => 1,
  98.                 2 => 1,
  99.                 3 => 0,
  100.             ),
  101.         );
  102.         $this->_delim = array (
  103.             -1 => 
  104.             array (
  105.                 0 => 'brackets',
  106.                 1 => 'quotes',
  107.                 2 => 'comment',
  108.                 3 => '',
  109.                 4 => '',
  110.                 5 => '',
  111.             ),
  112.             0 => 
  113.             array (
  114.                 0 => 'brackets',
  115.                 1 => 'quotes',
  116.                 2 => 'comment',
  117.                 3 => '',
  118.                 4 => '',
  119.                 5 => '',
  120.             ),
  121.             1 => 
  122.             array (
  123.             ),
  124.             2 => 
  125.             array (
  126.                 0 => '',
  127.                 1 => '',
  128.                 2 => '',
  129.                 3 => '',
  130.             ),
  131.         );
  132.         $this->_inner = array (
  133.             -1 => 
  134.             array (
  135.                 0 => 'code',
  136.                 1 => 'string',
  137.                 2 => 'comment',
  138.                 3 => 'number',
  139.                 4 => 'number',
  140.                 5 => 'identifier',
  141.             ),
  142.             0 => 
  143.             array (
  144.                 0 => 'code',
  145.                 1 => 'string',
  146.                 2 => 'comment',
  147.                 3 => 'number',
  148.                 4 => 'number',
  149.                 5 => 'identifier',
  150.             ),
  151.             1 => 
  152.             array (
  153.             ),
  154.             2 => 
  155.             array (
  156.                 0 => 'url',
  157.                 1 => 'url',
  158.                 2 => 'inlinedoc',
  159.                 3 => 'inlinedoc',
  160.             ),
  161.         );
  162.         $this->_end = array (
  163.             0 => '/(?i)\\)/',
  164.             1 => '/(?i)"/',
  165.             2 => '/(?mi)$/',
  166.         );
  167.         $this->_states = array (
  168.             -1 => 
  169.             array (
  170.                 0 => 0,
  171.                 1 => 1,
  172.                 2 => 2,
  173.                 3 => -1,
  174.                 4 => -1,
  175.                 5 => -1,
  176.             ),
  177.             0 => 
  178.             array (
  179.                 0 => 0,
  180.                 1 => 1,
  181.                 2 => 2,
  182.                 3 => -1,
  183.                 4 => -1,
  184.                 5 => -1,
  185.             ),
  186.             1 => 
  187.             array (
  188.             ),
  189.             2 => 
  190.             array (
  191.                 0 => -1,
  192.                 1 => -1,
  193.                 2 => -1,
  194.                 3 => -1,
  195.             ),
  196.         );
  197.         $this->_keywords = array (
  198.             -1 => 
  199.             array (
  200.                 0 => -1,
  201.                 1 => -1,
  202.                 2 => -1,
  203.                 3 => 
  204.                 array (
  205.                 ),
  206.                 4 => 
  207.                 array (
  208.                 ),
  209.                 5 => 
  210.                 array (
  211.                     '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)$/',
  212.                     '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)$/',
  213.                     'builtin' => '/^((?i)debug|err|match|regexp)$/',
  214.                     '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)$/',
  215.                 ),
  216.             ),
  217.             0 => 
  218.             array (
  219.                 0 => -1,
  220.                 1 => -1,
  221.                 2 => -1,
  222.                 3 => 
  223.                 array (
  224.                 ),
  225.                 4 => 
  226.                 array (
  227.                 ),
  228.                 5 => 
  229.                 array (
  230.                     '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)$/',
  231.                     '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)$/',
  232.                     'builtin' => '/^((?i)debug|err|match|regexp)$/',
  233.                     '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)$/',
  234.                 ),
  235.             ),
  236.             1 => 
  237.             array (
  238.             ),
  239.             2 => 
  240.             array (
  241.                 0 => 
  242.                 array (
  243.                 ),
  244.                 1 => 
  245.                 array (
  246.                 ),
  247.                 2 => 
  248.                 array (
  249.                 ),
  250.                 3 => 
  251.                 array (
  252.                 ),
  253.             ),
  254.         );
  255.         $this->_parts = array (
  256.             0 => 
  257.             array (
  258.                 0 => NULL,
  259.                 1 => NULL,
  260.                 2 => NULL,
  261.                 3 => NULL,
  262.                 4 => NULL,
  263.                 5 => NULL,
  264.             ),
  265.             1 => 
  266.             array (
  267.             ),
  268.             2 => 
  269.             array (
  270.                 0 => NULL,
  271.                 1 => NULL,
  272.                 2 => NULL,
  273.                 3 => NULL,
  274.             ),
  275.         );
  276.         $this->_subst = array (
  277.             -1 => 
  278.             array (
  279.                 0 => false,
  280.                 1 => false,
  281.                 2 => false,
  282.                 3 => false,
  283.                 4 => false,
  284.                 5 => false,
  285.             ),
  286.             0 => 
  287.             array (
  288.                 0 => false,
  289.                 1 => false,
  290.                 2 => false,
  291.                 3 => false,
  292.                 4 => false,
  293.                 5 => false,
  294.             ),
  295.             1 => 
  296.             array (
  297.             ),
  298.             2 => 
  299.             array (
  300.                 0 => false,
  301.                 1 => false,
  302.                 2 => false,
  303.                 3 => false,
  304.             ),
  305.         );
  306.         $this->_conditions = array (
  307.         );
  308.         $this->_kwmap = array (
  309.             'constants' => 'builtin',
  310.             'functions' => 'builtin',
  311.             'builtin' => 'builtin',
  312.             'reserved' => 'reserved',
  313.         );
  314.         $this->_defClass = 'code';
  315.         $this->_checkDefines();
  316.     }
  317.     
  318. }