websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 2... | Line 2... | |
/************************************************************************************* |
/************************************************************************************* | |
* c_mac.php |
* c_mac.php | |
* --------- |
* --------- | |
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net) |
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net) | |
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/) |
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/) | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2004/06/04 |
* Date Started: 2004/06/04 | |
* |
* | |
* C for Macs language file for GeSHi. |
* C for Macs language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 41... | Line 41... | |
|
| |
$language_data = array ( |
$language_data = array ( | |
'LANG_NAME' => 'C (Mac)', |
'LANG_NAME' => 'C (Mac)', | |
'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 116... | Line 132... | |
'SYMBOLS' => array( |
'SYMBOLS' => 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 134... | Line 150... | |
1 => 'color: #ff0000;', |
1 => 'color: #ff0000;', | |
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: #000000;' |
0 => 'color: #000000;' | |
), |
), | |
'STRINGS' => array( |
'STRINGS' => array( | |
Line 186... | Line 208... | |
), |
), | |
'TAB_WIDTH' => 4 |
'TAB_WIDTH' => 4 | |
); |
); | |
|
| |
?> |
?> | |
|