objc.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * objc.php
00004  * --------
00005  * Author: M. Uli Kusterer (witness.of.teachtext@gmx.net)
00006  * Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/06/04
00009  *
00010  * Objective C language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2004/11/27 (1.0.0)
00015  *   -  First Release
00016  *
00017  * TODO (updated 2004/11/27)
00018  * -------------------------
00019  *
00020  *************************************************************************************
00021  *
00022  *     This file is part of GeSHi.
00023  *
00024  *   GeSHi is free software; you can redistribute it and/or modify
00025  *   it under the terms of the GNU General Public License as published by
00026  *   the Free Software Foundation; either version 2 of the License, or
00027  *   (at your option) any later version.
00028  *
00029  *   GeSHi is distributed in the hope that it will be useful,
00030  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00031  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00032  *   GNU General Public License for more details.
00033  *
00034  *   You should have received a copy of the GNU General Public License
00035  *   along with GeSHi; if not, write to the Free Software
00036  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00037  *
00038  ************************************************************************************/
00039 
00040 $language_data = array (
00041      'LANG_NAME' => 'Objective C',
00042      'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
00043      'COMMENT_MULTI' => array('/*' => '*/'),
00044      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00045      'QUOTEMARKS' => array("'", '"'),
00046      'ESCAPE_CHAR' => '\\',
00047      'KEYWORDS' => array(
00048           1 => array(
00049                'if', 'return', 'while', 'case', 'continue', 'default',
00050                'do', 'else', 'for', 'switch', 'goto'
00051                ),
00052           2 => array(
00053                'NULL', 'false', 'break', 'true', 'enum', 'nil', 'Nil', 'errno', 'EDOM',
00054                'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
00055                'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
00056                'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
00057                'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
00058                'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
00059                'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
00060                'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
00061                'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
00062                'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
00063                'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
00064                'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC'
00065                ),
00066           3 => array(
00067                'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
00068                'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
00069                'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
00070                'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
00071                'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
00072                'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
00073                'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
00074                'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
00075                'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
00076                'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
00077                'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
00078                'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
00079                'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
00080                'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
00081                'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
00082                'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
00083                'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
00084                'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
00085                'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
00086                ),
00087           4 => array(   // Data types:
00088                'auto', 'char', 'const', 'double',  'float', 'int', 'long',
00089                'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
00090                'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
00091                'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
00092                'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
00093                // OpenStep/GNUstep/Cocoa:
00094                'SEL', 'id', 'NSRect', 'NSRange', 'NSPoint', 'NSZone', 'Class', 'IMP', 'BOOL',
00095                // OpenStep/GNUstep/Cocoa @identifiers
00096                '@selector', '@class', '@protocol', '@interface', '@implementation', '@end',
00097                '@private', '@protected', '@public', '@try', '@throw', '@catch', '@finally',
00098                '@encode', '@defs', '@synchronized'
00099                ),
00100         5 => array( // OpenStep/GNUstep/Cocoa Foundation
00101                'NSAppleEventDescriptor', 'NSNetService', 'NSAppleEventManager',
00102                'NSNetServiceBrowser', 'NSAppleScript', 'NSNotification', 'NSArchiver',
00103                'NSNotificationCenter', 'NSArray', 'NSNotificationQueue', 'NSAssertionHandler',
00104                'NSNull', 'NSAttributedString', 'NSNumber', 'NSAutoreleasePool',
00105                'NSNumberFormatter', 'NSBundle', 'NSObject', 'NSCachedURLResponse',
00106                'NSOutputStream', 'NSCalendarDate', 'NSPipe', 'NSCharacterSet', 'NSPort',
00107                'NSClassDescription', 'NSPortCoder', 'NSCloneCommand', 'NSPortMessage',
00108                'NSCloseCommand', 'NSPortNameServer', 'NSCoder', 'NSPositionalSpecifier',
00109                'NSConditionLock', 'NSProcessInfo', 'NSConnection', 'NSPropertyListSerialization',
00110                'NSCountCommand', 'NSPropertySpecifier', 'NSCountedSet', 'NSProtocolChecker',
00111                'NSCreateCommand', 'NSProxy', 'NSData', 'NSQuitCommand', 'NSDate',
00112                'NSRandomSpecifier', 'NSDateFormatter', 'NSRangeSpecifier', 'NSDecimalNumber',
00113                'NSRecursiveLock', 'NSDecimalNumberHandler', 'NSRelativeSpecifier',
00114                'NSDeleteCommand', 'NSRunLoop', 'NSDeserializer', 'NSScanner', 'NSDictionary',
00115                'NSScriptClassDescription', 'NSDirectoryEnumerator', 'NSScriptCoercionHandler',
00116                'NSDistantObject', 'NSScriptCommand', 'NSDistantObjectRequest',
00117                'NSScriptCommandDescription', 'NSDistributedLock', 'NSScriptExecutionContext',
00118                'NSDistributedNotificationCenter', 'NSScriptObjectSpecifier', 'NSEnumerator',
00119                'NSScriptSuiteRegistry', 'NSError', 'NSScriptWhoseTest', 'NSException',
00120                'NSSerializer', 'NSExistsCommand', 'NSSet', 'NSFileHandle', 'NSSetCommand',
00121                'NSFileManager', 'NSSocketPort', 'NSFormatter', 'NSSocketPortNameServer',
00122                'NSGetCommand', 'NSSortDescriptor', 'NSHost', 'NSSpecifierTest', 'NSHTTPCookie',
00123                'NSSpellServer', 'NSHTTPCookieStorage', 'NSStream', 'NSHTTPURLResponse',
00124                'NSString', 'NSIndexSet', 'NSTask', 'NSIndexSpecifier', 'NSThread',
00125                'NSInputStream', 'NSTimer', 'NSInvocation', 'NSTimeZone', 'NSKeyedArchiver',
00126                'NSUnarchiver', 'NSKeyedUnarchiver', 'NSUndoManager', 'NSLock',
00127                'NSUniqueIDSpecifier', 'NSLogicalTest', 'NSURL', 'NSMachBootstrapServer',
00128                'NSURLAuthenticationChallenge', 'NSMachPort', 'NSURLCache', 'NSMessagePort',
00129                'NSURLConnection', 'NSMessagePortNameServer', 'NSURLCredential',
00130                'NSMethodSignature', 'NSURLCredentialStorage', 'NSMiddleSpecifier',
00131                'NSURLDownload', 'NSMoveCommand', 'NSURLHandle', 'NSMutableArray',
00132                'NSURLProtectionSpace', 'NSMutableAttributedString', 'NSURLProtocol',
00133                'NSMutableCharacterSet', 'NSURLRequest', 'NSMutableData', 'NSURLResponse',
00134                'NSMutableDictionary', 'NSUserDefaults', 'NSMutableIndexSet', 'NSValue',
00135                'NSMutableSet', 'NSValueTransformer', 'NSMutableString', 'NSWhoseSpecifier',
00136                'NSMutableURLRequest', 'NSXMLParser', 'NSNameSpecifier'
00137           ),
00138           6 => array( // OpenStep/GNUstep/Cocoa AppKit
00139                'NSActionCell', 'NSOpenGLPixelFormat', 'NSAffineTransform', 'NSOpenGLView',
00140                'NSAlert', 'NSOpenPanel', 'NSAppleScript Additions', 'NSOutlineView',
00141                'NSApplication', 'NSPageLayout', 'NSArrayController', 'NSPanel',
00142                'NSATSTypesetter', 'NSParagraphStyle', 'NSPasteboard', 'NSBezierPath',
00143                'NSPDFImageRep', 'NSBitmapImageRep', 'NSPICTImageRep', 'NSBox', 'NSPopUpButton',
00144                'NSBrowser', 'NSPopUpButtonCell', 'NSBrowserCell', 'NSPrinter', 'NSPrintInfo',
00145                'NSButton', 'NSPrintOperation', 'NSButtonCell', 'NSPrintPanel', 'NSCachedImageRep',
00146                'NSProgressIndicator', 'NSCell', 'NSQuickDrawView', 'NSClipView', 'NSResponder',
00147                'NSRulerMarker', 'NSColor', 'NSRulerView', 'NSColorList', 'NSSavePanel',
00148                'NSColorPanel', 'NSScreen', 'NSColorPicker', 'NSScroller', 'NSColorWell',
00149                'NSScrollView', 'NSComboBox', 'NSSearchField', 'NSComboBoxCell',
00150                'NSSearchFieldCell', 'NSControl', 'NSSecureTextField', 'NSController',
00151                'NSSecureTextFieldCell', 'NSCursor', 'NSSegmentedCell', 'NSCustomImageRep',
00152                'NSSegmentedControl', 'NSDocument', 'NSShadow', 'NSDocumentController',
00153                'NSSimpleHorizontalTypesetter', 'NSDrawer', 'NSSlider', 'NSEPSImageRep',
00154                'NSSliderCell', 'NSEvent', 'NSSound', 'NSFileWrapper', 'NSSpeechRecognizer',
00155                'NSFont', 'NSSpeechSynthesizer', 'NSFontDescriptor', 'NSSpellChecker',
00156                'NSFontManager', 'NSSplitView', 'NSFontPanel', 'NSStatusBar', 'NSForm',
00157                'NSStatusItem', 'NSFormCell', 'NSStepper', 'NSGlyphGenerator', 'NSStepperCell',
00158                'NSGlyphInfo', 'NSGraphicsContext', 'NSTableColumn', 'NSHelpManager',
00159                'NSTableHeaderCell', 'NSImage', 'NSTableHeaderView', 'NSImageCell', 'NSTableView',
00160                'NSImageRep', 'NSTabView', 'NSImageView', 'NSTabViewItem', 'NSInputManager',
00161                'NSText', 'NSInputServer', 'NSTextAttachment', 'NSLayoutManager',
00162                'NSTextAttachmentCell', 'NSMatrix', 'NSTextContainer', 'NSMenu', 'NSTextField',
00163                'NSMenuItem', 'NSTextFieldCell', 'NSMenuItemCell', 'NSTextStorage', 'NSMenuView',
00164                'NSTextTab', 'NSMovie', 'NSTextView', 'NSMovieView', 'NSToolbar', 'NSToolbarItem',
00165                'NSMutableParagraphStyle', 'NSTypesetter', 'NSNib', 'NSNibConnector',
00166                'NSUserDefaultsController', 'NSNibControlConnector', 'NSView',
00167                'NSNibOutletConnector', 'NSWindow', 'NSObjectController', 'NSWindowController',
00168                'NSOpenGLContext', 'NSWorkspace', 'NSOpenGLPixelBuffer'
00169           )
00170      ),
00171      'SYMBOLS' => array(
00172           '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
00173           ),
00174      'CASE_SENSITIVE' => array(
00175           GESHI_COMMENTS => true,
00176           1 => false,
00177           2 => false,
00178           3 => false,
00179           4 => false,
00180           5 => false,
00181           6 => false,
00182           ),
00183      'STYLES' => array(
00184           'KEYWORDS' => array(
00185                1 => 'color: #0000ff;',
00186                2 => 'color: #0000ff;',
00187                3 => 'color: #0000dd;',
00188                4 => 'color: #0000ff;',
00189                5 => 'color: #0000ff;',
00190                6 => 'color: #0000ff;'
00191                ),
00192           'COMMENTS' => array(
00193                1 => 'color: #ff0000;',
00194                2 => 'color: #339900;',
00195                'MULTI' => 'color: #ff0000; font-style: italic;'
00196                ),
00197           'ESCAPE_CHAR' => array(
00198                0 => 'color: #666666; font-weight: bold;'
00199                ),
00200           'BRACKETS' => array(
00201                0 => 'color: #002200;'
00202                ),
00203           'STRINGS' => array(
00204                0 => 'color: #666666;'
00205                ),
00206           'NUMBERS' => array(
00207                0 => 'color: #0000dd;'
00208                ),
00209           'METHODS' => array(
00210                ),
00211           'SYMBOLS' => array(
00212                0 => 'color: #002200;'
00213                ),
00214           'REGEXPS' => array(
00215                ),
00216           'SCRIPT' => array(
00217                )
00218           ),
00219      'URLS' => array(
00220           1 => '',
00221           2 => '',
00222           3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
00223           4 => '',
00224           5 => 'http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/{FNAME}.html',
00225           6 => 'http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/{FNAME}.html'
00226           ),
00227      'OOLANG' => false,
00228      'OBJECT_SPLITTERS' => array(
00229           ),
00230      'REGEXPS' => array(
00231           ),
00232      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00233      'SCRIPT_DELIMITERS' => array(
00234           ),
00235      'HIGHLIGHT_STRICT_BLOCK' => array(
00236           )
00237 );
00238 
00239 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8