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 / DIFF.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  9.1 KB  |  384 lines

  1. <?php
  2. /**
  3.  * Auto-generated class. DIFF 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: : diff.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. DIFF 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_DIFF extends Text_Highlighter
  41. {
  42.     var $_language = 'diff';
  43.  
  44.     /**
  45.      * PHP4 Compatible Constructor
  46.      *
  47.      * @param array  $options
  48.      * @access public
  49.      */
  50.     function Text_Highlighter_DIFF($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 => '/((?m)^\\\\\\sNo\\snewline.+$)|((?m)^\\-\\-\\-$)|((?m)^(diff\\s+\\-|Only\\s+|Index).*$)|((?m)^(\\-\\-\\-|\\+\\+\\+)\\s.+$)|((?m)^\\*.*$)|((?m)^\\+.*$)|((?m)^!.*$)|((?m)^\\<\\s.*$)|((?m)^\\>\\s.*$)|((?m)^\\d+(\\,\\d+)?[acd]\\d+(,\\d+)?$)|((?m)^\\-.*$)|((?m)^\\+.*$)|((?m)^@@.+@@$)|((?m)^d\\d+\\s\\d+$)|((?m)^a\\d+\\s\\d+$)|((?m)^(\\d+)(,\\d+)?(a)$)|((?m)^(\\d+)(,\\d+)?(c)$)|((?m)^(\\d+)(,\\d+)?(d)$)|((?m)^a(\\d+)(\\s\\d+)?$)|((?m)^c(\\d+)(\\s\\d+)?$)|((?m)^d(\\d+)(\\s\\d+)?$)/',
  68.             0 => '//',
  69.             1 => '//',
  70.             2 => '//',
  71.             3 => '//',
  72.             4 => '//',
  73.         );
  74.         $this->_counts = array (
  75.             -1 => 
  76.             array (
  77.                 0 => 0,
  78.                 1 => 0,
  79.                 2 => 1,
  80.                 3 => 1,
  81.                 4 => 0,
  82.                 5 => 0,
  83.                 6 => 0,
  84.                 7 => 0,
  85.                 8 => 0,
  86.                 9 => 2,
  87.                 10 => 0,
  88.                 11 => 0,
  89.                 12 => 0,
  90.                 13 => 0,
  91.                 14 => 0,
  92.                 15 => 3,
  93.                 16 => 3,
  94.                 17 => 3,
  95.                 18 => 2,
  96.                 19 => 2,
  97.                 20 => 2,
  98.             ),
  99.             0 => 
  100.             array (
  101.             ),
  102.             1 => 
  103.             array (
  104.             ),
  105.             2 => 
  106.             array (
  107.             ),
  108.             3 => 
  109.             array (
  110.             ),
  111.             4 => 
  112.             array (
  113.             ),
  114.         );
  115.         $this->_delim = array (
  116.             -1 => 
  117.             array (
  118.                 0 => '',
  119.                 1 => '',
  120.                 2 => '',
  121.                 3 => '',
  122.                 4 => '',
  123.                 5 => '',
  124.                 6 => '',
  125.                 7 => '',
  126.                 8 => '',
  127.                 9 => '',
  128.                 10 => '',
  129.                 11 => '',
  130.                 12 => '',
  131.                 13 => '',
  132.                 14 => 'code',
  133.                 15 => 'code',
  134.                 16 => 'code',
  135.                 17 => '',
  136.                 18 => 'code',
  137.                 19 => 'code',
  138.                 20 => '',
  139.             ),
  140.             0 => 
  141.             array (
  142.             ),
  143.             1 => 
  144.             array (
  145.             ),
  146.             2 => 
  147.             array (
  148.             ),
  149.             3 => 
  150.             array (
  151.             ),
  152.             4 => 
  153.             array (
  154.             ),
  155.         );
  156.         $this->_inner = array (
  157.             -1 => 
  158.             array (
  159.                 0 => 'special',
  160.                 1 => 'code',
  161.                 2 => 'var',
  162.                 3 => 'reserved',
  163.                 4 => 'quotes',
  164.                 5 => 'string',
  165.                 6 => 'inlinedoc',
  166.                 7 => 'quotes',
  167.                 8 => 'string',
  168.                 9 => 'code',
  169.                 10 => 'quotes',
  170.                 11 => 'string',
  171.                 12 => 'code',
  172.                 13 => 'code',
  173.                 14 => 'var',
  174.                 15 => 'string',
  175.                 16 => 'inlinedoc',
  176.                 17 => 'code',
  177.                 18 => 'string',
  178.                 19 => 'inlinedoc',
  179.                 20 => 'code',
  180.             ),
  181.             0 => 
  182.             array (
  183.             ),
  184.             1 => 
  185.             array (
  186.             ),
  187.             2 => 
  188.             array (
  189.             ),
  190.             3 => 
  191.             array (
  192.             ),
  193.             4 => 
  194.             array (
  195.             ),
  196.         );
  197.         $this->_end = array (
  198.             0 => '/(?m)(?=^[ad]\\d+\\s\\d+)/',
  199.             1 => '/(?m)^(\\.)$/',
  200.             2 => '/(?m)^(\\.)$/',
  201.             3 => '/(?m)^(\\.)$/',
  202.             4 => '/(?m)^(\\.)$/',
  203.         );
  204.         $this->_states = array (
  205.             -1 => 
  206.             array (
  207.                 0 => -1,
  208.                 1 => -1,
  209.                 2 => -1,
  210.                 3 => -1,
  211.                 4 => -1,
  212.                 5 => -1,
  213.                 6 => -1,
  214.                 7 => -1,
  215.                 8 => -1,
  216.                 9 => -1,
  217.                 10 => -1,
  218.                 11 => -1,
  219.                 12 => -1,
  220.                 13 => -1,
  221.                 14 => 0,
  222.                 15 => 1,
  223.                 16 => 2,
  224.                 17 => -1,
  225.                 18 => 3,
  226.                 19 => 4,
  227.                 20 => -1,
  228.             ),
  229.             0 => 
  230.             array (
  231.             ),
  232.             1 => 
  233.             array (
  234.             ),
  235.             2 => 
  236.             array (
  237.             ),
  238.             3 => 
  239.             array (
  240.             ),
  241.             4 => 
  242.             array (
  243.             ),
  244.         );
  245.         $this->_keywords = array (
  246.             -1 => 
  247.             array (
  248.                 0 => 
  249.                 array (
  250.                 ),
  251.                 1 => 
  252.                 array (
  253.                 ),
  254.                 2 => 
  255.                 array (
  256.                 ),
  257.                 3 => 
  258.                 array (
  259.                 ),
  260.                 4 => 
  261.                 array (
  262.                 ),
  263.                 5 => 
  264.                 array (
  265.                 ),
  266.                 6 => 
  267.                 array (
  268.                 ),
  269.                 7 => 
  270.                 array (
  271.                 ),
  272.                 8 => 
  273.                 array (
  274.                 ),
  275.                 9 => 
  276.                 array (
  277.                 ),
  278.                 10 => 
  279.                 array (
  280.                 ),
  281.                 11 => 
  282.                 array (
  283.                 ),
  284.                 12 => 
  285.                 array (
  286.                 ),
  287.                 13 => 
  288.                 array (
  289.                 ),
  290.                 14 => -1,
  291.                 15 => -1,
  292.                 16 => -1,
  293.                 17 => 
  294.                 array (
  295.                 ),
  296.                 18 => -1,
  297.                 19 => -1,
  298.                 20 => 
  299.                 array (
  300.                 ),
  301.             ),
  302.             0 => 
  303.             array (
  304.             ),
  305.             1 => 
  306.             array (
  307.             ),
  308.             2 => 
  309.             array (
  310.             ),
  311.             3 => 
  312.             array (
  313.             ),
  314.             4 => 
  315.             array (
  316.             ),
  317.         );
  318.         $this->_parts = array (
  319.             0 => 
  320.             array (
  321.             ),
  322.             1 => 
  323.             array (
  324.             ),
  325.             2 => 
  326.             array (
  327.             ),
  328.             3 => 
  329.             array (
  330.             ),
  331.             4 => 
  332.             array (
  333.             ),
  334.         );
  335.         $this->_subst = array (
  336.             -1 => 
  337.             array (
  338.                 0 => false,
  339.                 1 => false,
  340.                 2 => false,
  341.                 3 => false,
  342.                 4 => false,
  343.                 5 => false,
  344.                 6 => false,
  345.                 7 => false,
  346.                 8 => false,
  347.                 9 => false,
  348.                 10 => false,
  349.                 11 => false,
  350.                 12 => false,
  351.                 13 => false,
  352.                 14 => false,
  353.                 15 => false,
  354.                 16 => false,
  355.                 17 => false,
  356.                 18 => false,
  357.                 19 => false,
  358.                 20 => false,
  359.             ),
  360.             0 => 
  361.             array (
  362.             ),
  363.             1 => 
  364.             array (
  365.             ),
  366.             2 => 
  367.             array (
  368.             ),
  369.             3 => 
  370.             array (
  371.             ),
  372.             4 => 
  373.             array (
  374.             ),
  375.         );
  376.         $this->_conditions = array (
  377.         );
  378.         $this->_kwmap = array (
  379.         );
  380.         $this->_defClass = 'default';
  381.         $this->_checkDefines();
  382.     }
  383.     
  384. }