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 / DTD.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  10.0 KB  |  426 lines

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