websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 5... | Line 5... | |
* Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de) |
* Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de) | |
* Contributors: |
* Contributors: | |
* - M. Uli Kusterer (witness.of.teachtext@gmx.net) |
* - M. Uli Kusterer (witness.of.teachtext@gmx.net) | |
* - Jack Lloyd (lloyd@randombit.net) |
* - Jack Lloyd (lloyd@randombit.net) | |
* Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter) |
* Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter) | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2004/09/27 |
* Date Started: 2004/09/27 | |
* |
* | |
* C++ language file for GeSHi. |
* C++ language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 50... | Line 50... | |
|
| |
$language_data = array ( |
$language_data = array ( | |
'LANG_NAME' => 'C++', |
'LANG_NAME' => 'C++', | |
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), |
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |
'COMMENT_MULTI' => array('/*' => '*/'), |
'COMMENT_MULTI' => array('/*' => '*/'), | |
//Multiline-continued single-line comments |
'COMMENT_REGEXP' => array( | |
'COMMENT_REGEXP' => array(1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m'), |
//Multiline-continued single-line comments | |
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | ||
//Multiline-continued preprocessor define | ||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' | ||
), | ||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |
'QUOTEMARKS' => array("'", '"'), |
'QUOTEMARKS' => array("'", '"'), | |
'ESCAPE_CHAR' => '\\', |
'ESCAPE_CHAR' => '', | |
'ESCAPE_REGEXP' => array( | ||
//Simple Single Char Escapes | ||
1 => "#\\\\[abfnrtv\\'\"?\n]#i", | ||
//Hexadecimal Char Specs | ||
2 => "#\\\\x[\da-fA-F]{2}#", | ||
//Hexadecimal Char Specs | ||
3 => "#\\\\u[\da-fA-F]{4}#", | ||
//Hexadecimal Char Specs | ||
4 => "#\\\\U[\da-fA-F]{8}#", | ||
//Octal Char Specs | ||
5 => "#\\\\[0-7]{1,3}#" | ||
), | ||
'NUMBERS' => |
'NUMBERS' => | |
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | |
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
Line 120... | Line 136... | |
3 => array('!', '^', '&', '|'), |
3 => array('!', '^', '&', '|'), | |
4 => array('?', ':', ';') |
4 => array('?', ':', ';') | |
), |
), | |
'CASE_SENSITIVE' => array( |
'CASE_SENSITIVE' => array( | |
GESHI_COMMENTS => false, |
GESHI_COMMENTS => false, | |
1 => false, |
1 => true, | |
2 => false, |
2 => true, | |
3 => false, |
3 => true, | |
4 => false, |
4 => true, | |
), |
), | |
'STYLES' => array( |
'STYLES' => array( | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
1 => 'color: #0000ff;', |
1 => 'color: #0000ff;', | |
2 => 'color: #0000ff;', |
2 => 'color: #0000ff;', | |
Line 138... | Line 154... | |
1 => 'color: #666666;', |
1 => 'color: #666666;', | |
2 => 'color: #339900;', |
2 => 'color: #339900;', | |
'MULTI' => 'color: #ff0000; font-style: italic;' |
'MULTI' => 'color: #ff0000; font-style: italic;' | |
), |
), | |
'ESCAPE_CHAR' => array( |
'ESCAPE_CHAR' => array( | |
0 => 'color: #666666; font-weight: bold;' |
0 => 'color: #000099; font-weight: bold;', | |
1 => 'color: #000099; font-weight: bold;', | ||
2 => 'color: #660099; font-weight: bold;', | ||
3 => 'color: #660099; font-weight: bold;', | ||
4 => 'color: #660099; font-weight: bold;', | ||
5 => 'color: #006699; font-weight: bold;', | ||
'HARD' => '', | ||
), |
), | |
'BRACKETS' => array( |
'BRACKETS' => array( | |
0 => 'color: #008000;' |
0 => 'color: #008000;' | |
), |
), | |
'STRINGS' => array( |
'STRINGS' => array( | |
Line 200... | Line 222... | |
) |
) | |
) |
) | |
); |
); | |
|
| |
?> |
?> | |
|