diff options
Diffstat (limited to 'inc/geshi/d.php')
-rw-r--r-- | inc/geshi/d.php | 225 |
1 files changed, 65 insertions, 160 deletions
diff --git a/inc/geshi/d.php b/inc/geshi/d.php index 3f92de72d..ee2668845 100644 --- a/inc/geshi/d.php +++ b/inc/geshi/d.php @@ -4,7 +4,7 @@ * ----- * Author: Thomas Kuehne (thomas@kuehne.cn) * Copyright: (c) 2005 Thomas Kuehne (http://thomas.kuehne.cn/) - * Release Version: 1.0.7.22 + * Release Version: 1\.0\.8 * Date Started: 2005/04/22 * * D language file for GeSHi. @@ -49,171 +49,70 @@ $language_data = array ( 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"', "'", '`'), 'ESCAPE_CHAR' => '\\', + 'NUMBERS' => 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_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, 'KEYWORDS' => array( 1 => array( - 'while', - 'switch', - 'if', - 'foreach', - 'for', - 'goto', - 'return', - 'else', - 'do', - 'case', - 'continue', - 'break' + 'break', 'case', 'continue', 'do', 'else', + 'for', 'foreach', 'goto', 'if', 'return', + 'switch', 'while' ), 2 => array( - 'with', - 'union', - 'typeof', - 'typeid', - 'typedef', - 'try', - 'true', - 'throw', - 'this', - 'super', - 'pragma', - 'out', - 'null', - 'new', - 'module', - 'mixin', - 'is', - 'invariant', - 'interface', - 'inout', - 'in', - 'import', - 'function', - 'finally', - 'false', - 'extern', - 'delete', - 'delegate', - 'default', - 'catch', - 'cast', - 'body', - 'assert', - 'asm', - 'alias' + 'alias', 'asm', 'assert', 'body', 'cast', + 'catch', 'default', 'delegate', 'delete', + 'extern', 'false', 'finally', 'function', + 'import', 'in', 'inout', 'interface', + 'invariant', 'is', 'mixin', 'module', 'new', + 'null', 'out', 'pragma', 'super', 'this', + 'throw', 'true', 'try', 'typedef', 'typeid', + 'typeof', 'union', 'with' ), 3 => array( - 'TypeInfo', - 'SwitchError', - 'OutOfMemoryException', - 'Object', - 'ModuleInfo', - 'Interface', - 'Exception', - 'Error', - 'ClassInfo', - 'ArrayBoundsError', - 'AssertError', - '_d_throw', - '_d_switch_ustring', - '_d_switch_string', - '_d_switch_dstring', - '_d_OutOfMemory', - '_d_obj_eq', - '_d_obj_cmp', - '_d_newclass', - '_d_newbitarray', - '_d_newarrayi', - '_d_new', - '_d_monitorrelease', - '_d_monitor_prolog', - '_d_monitor_handler', - '_d_monitorexit', - '_d_monitor_epilog', - '_d_monitorenter', - '_d_local_unwind', - '_d_isbaseof2', - '_d_isbaseof', - '_d_invariant', - '_d_interface_vtbl', - '_d_interface_cast', - '_d_framehandler', - '_d_exception_filter', - '_d_exception', - '_d_dynamic_cast', - '_d_delmemory', - '_d_delinterface', - '_d_delclass', - '_d_delarray', - '_d_criticalexit', - '_d_criticalenter', - '_d_create_exception_object', + 'ArrayBoundsError', 'AssertError', + 'ClassInfo', 'Error', 'Exception', + 'Interface', 'ModuleInfo', 'Object', + 'OutOfMemoryException', 'SwitchError', + 'TypeInfo', '_d_arrayappend', + '_d_arrayappendb', '_d_arrayappendc', + '_d_arrayappendcb', '_d_arraycast', + '_d_arraycast_frombit', '_d_arraycat', + '_d_arraycatb', '_d_arraycatn', + '_d_arraycopy', '_d_arraycopybit', + '_d_arraysetbit', '_d_arraysetbit2', + '_d_arraysetlength', '_d_arraysetlengthb', '_d_callfinalizer', - '_d_arraysetlengthb', - '_d_arraysetlength', - '_d_arraysetbit2', - '_d_arraysetbit', - '_d_arraycopybit', - '_d_arraycopy', - '_d_arraycatn', - '_d_arraycatb', - '_d_arraycat', - '_d_arraycast_frombit', - '_d_arraycast', - '_d_arrayappendcb', - '_d_arrayappendc', - '_d_arrayappendb', - '_d_arrayappend', + '_d_create_exception_object', + '_d_criticalenter', '_d_criticalexit', + '_d_delarray', '_d_delclass', + '_d_delinterface', '_d_delmemory', + '_d_dynamic_cast', '_d_exception', + '_d_exception_filter', '_d_framehandler', + '_d_interface_cast', '_d_interface_vtbl', + '_d_invariant', '_d_isbaseof', + '_d_isbaseof2', '_d_local_unwind', + '_d_monitorenter', '_d_monitorexit', + '_d_monitorrelease', '_d_monitor_epilog', + '_d_monitor_handler', '_d_monitor_prolog', + '_d_new', '_d_newarrayi', '_d_newbitarray', + '_d_newclass', '_d_obj_cmp', '_d_obj_eq', + '_d_OutOfMemory', '_d_switch_dstring', + '_d_switch_string', '_d_switch_ustring', + '_d_throw', ), 4 => array( - 'wchar', - 'volatile', - 'void', - 'version', - 'ushort', - 'unittest', - 'ulong', - 'uint', - 'ucent', - 'ubyte', - 'template', - 'struct', - 'static', - 'synchronized', - 'size_t', - 'short', - 'real', - 'public', - 'protected', - 'private', - 'ptrdiff_t', - 'package', - 'override', - 'long', - 'int', - 'ireal', - 'ifloat', - 'idouble', - 'float', - 'final', - 'export', - 'enum', - 'double', - 'deprecated', - 'debug', - 'dchar', - 'creal', - 'const', - 'class', - 'char', - 'cfloat', - 'cent', - 'cdouble', - 'byte', - 'bool', - 'bit', - 'auto', - 'align', - 'abstract' + 'abstract', 'align', 'auto', 'bit', 'bool', + 'byte', 'cdouble', 'cent', 'cfloat', 'char', + 'class', 'const', 'creal', 'dchar', 'debug', + 'deprecated', 'double', 'enum', 'export', + 'final', 'float', 'idouble', 'ifloat', 'int', + 'ireal', 'long', 'override', 'package', + 'private', 'protected', 'ptrdiff_t', + 'public', 'real', 'short', 'size_t', + 'static', 'struct', 'synchronized', + 'template', 'ubyte', 'ucent', 'uint', + 'ulong', 'unittest', 'ushort', 'version', + 'void', 'volatile', 'wchar' ) ), 'SYMBOLS' => array( @@ -221,7 +120,7 @@ $language_data = array ( '+', '-', '*', '/', '%', '&', '|', '^', '<', '>', '=', '~', ), 'CASE_SENSITIVE' => array( - GESHI_COMMENTS => true, + GESHI_COMMENTS => false, 1 => true, 2 => true, 3 => true, @@ -236,7 +135,6 @@ $language_data = array ( ), 'COMMENTS' => array( 1=> 'color: #808080; font-style: italic;', - 2=> 'color: #a1a100;', 'MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( @@ -249,7 +147,14 @@ $language_data = array ( 0 => 'color: #ff0000;' ), 'NUMBERS' => array( - 0 => 'color: #cc66cc;' + 0 => 'color: #0000dd;', + GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', + GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', + GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', + GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', + GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', + GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', + GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' ), 'METHODS' => array( 1 => 'color: #006600;', |