195 lines
5.7 KiB
PHP
195 lines
5.7 KiB
PHP
<?php
|
|
/*************************************************************************************
|
|
* diff.php
|
|
* --------
|
|
* Author: Conny Brunnkvist (conny@fuchsia.se), W. Tasin (tasin@fhm.edu)
|
|
* Copyright: (c) 2004 Fuchsia Open Source Solutions (http://www.fuchsia.se/)
|
|
* Release Version: 1.0.8.12
|
|
* Date Started: 2004/12/29
|
|
*
|
|
* Diff-output language file for GeSHi.
|
|
*
|
|
* CHANGES
|
|
* -------
|
|
* 2008/05/23 (1.0.7.22)
|
|
* - Added description of extra language features (SF#1970248)
|
|
* 2006/02/27
|
|
* - changing language file to use matching of start (^) and end ($) (wt)
|
|
* 2004/12/29 (1.0.0)
|
|
* - First Release
|
|
*
|
|
* TODO (updated 2006/02/27)
|
|
* -------------------------
|
|
*
|
|
*
|
|
*************************************************************************************
|
|
*
|
|
* This file is part of GeSHi.
|
|
*
|
|
* GeSHi is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* GeSHi is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with GeSHi; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
************************************************************************************/
|
|
|
|
|
|
$language_data = array (
|
|
'LANG_NAME' => 'Diff',
|
|
'COMMENT_SINGLE' => array(),
|
|
'COMMENT_MULTI' => array(),
|
|
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
'QUOTEMARKS' => array(),
|
|
'ESCAPE_CHAR' => ' ',
|
|
'KEYWORDS' => array(
|
|
1 => array(
|
|
'\ No newline at end of file'
|
|
),
|
|
// 2 => array(
|
|
// '***************' /* This only seems to works in some cases? */
|
|
// ),
|
|
),
|
|
'SYMBOLS' => array(
|
|
),
|
|
'CASE_SENSITIVE' => array(
|
|
1 => false,
|
|
// 2 => false
|
|
),
|
|
'STYLES' => array(
|
|
'KEYWORDS' => array(
|
|
1 => 'color: #aaaaaa; font-style: italic;',
|
|
// 2 => 'color: #dd6611;',
|
|
),
|
|
'COMMENTS' => array(
|
|
),
|
|
'ESCAPE_CHAR' => array(
|
|
0 => ''
|
|
),
|
|
'BRACKETS' => array(
|
|
0 => ''
|
|
),
|
|
'STRINGS' => array(
|
|
0 => ''
|
|
),
|
|
'NUMBERS' => array(
|
|
0 => ''
|
|
),
|
|
'METHODS' => array(
|
|
0 => ''
|
|
),
|
|
'SYMBOLS' => array(
|
|
0 => ''
|
|
),
|
|
'SCRIPT' => array(
|
|
0 => ''
|
|
),
|
|
'REGEXPS' => array(
|
|
0 => 'color: #440088;',
|
|
1 => 'color: #991111;',
|
|
2 => 'color: #00b000;',
|
|
3 => 'color: #888822;',
|
|
4 => 'color: #888822;',
|
|
5 => 'color: #0011dd;',
|
|
6 => 'color: #440088;',
|
|
7 => 'color: #991111;',
|
|
8 => 'color: #00b000;',
|
|
9 => 'color: #888822;',
|
|
),
|
|
),
|
|
'URLS' => array(
|
|
1 => '',
|
|
// 2 => ''
|
|
),
|
|
'OOLANG' => false,
|
|
'OBJECT_SPLITTERS' => array(),
|
|
'REGEXPS' => array(
|
|
0 => "[0-9,]+[acd][0-9,]+",
|
|
//Removed lines
|
|
1 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))\\<.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Inserted lines
|
|
2 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))\\>.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Location line
|
|
3 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))-{3}\\s.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Inserted line
|
|
4 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))(\\+){3}\\s.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Modified line
|
|
5 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))\\!.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//File specification
|
|
6 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))[\\@]{2}.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Removed line
|
|
7 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))\\-.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//Inserted line
|
|
8 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))\\+.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
//File specification
|
|
9 => array(
|
|
GESHI_SEARCH => '(^|(?<=\A\s))(\\*){3}\\s.*$',
|
|
GESHI_REPLACE => '\\0',
|
|
GESHI_MODIFIERS => 'm',
|
|
GESHI_BEFORE => '',
|
|
GESHI_AFTER => ''
|
|
),
|
|
),
|
|
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
'SCRIPT_DELIMITERS' => array(
|
|
),
|
|
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
)
|
|
);
|