A tumblelog CMS built on AJAX, PHP and MySQL.

objc.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?php
  2. /*************************************************************************************
  3. * objc.php
  4. * --------
  5. * Author: M. Uli Kusterer (witness.of.teachtext@gmx.net)
  6. * Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2004/06/04
  9. *
  10. * Objective C language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2004/11/27 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO (updated 2004/11/27)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'Objective C',
  41. 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
  42. 'COMMENT_MULTI' => array('/*' => '*/'),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 1 => array(
  48. 'if', 'return', 'while', 'case', 'continue', 'default',
  49. 'do', 'else', 'for', 'switch', 'goto'
  50. ),
  51. 2 => array(
  52. 'NULL', 'false', 'break', 'true', 'enum', 'nil', 'Nil', 'errno', 'EDOM',
  53. 'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
  54. 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
  55. 'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
  56. 'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
  57. 'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
  58. 'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
  59. 'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
  60. 'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
  61. 'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', 'NULL',
  62. 'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
  63. 'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC'
  64. ),
  65. 3 => array(
  66. 'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
  67. 'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
  68. 'ispunct', 'isspace', 'ispunct', 'isupper', 'isxdigit', 'tolower', 'toupper',
  69. 'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
  70. 'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
  71. 'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', 'asin', 'acos', 'atan', 'atan2',
  72. 'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
  73. 'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
  74. 'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
  75. 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
  76. 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
  77. 'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
  78. 'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
  79. 'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
  80. 'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
  81. 'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
  82. 'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
  83. 'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
  84. 'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
  85. ),
  86. 4 => array( // Data types:
  87. 'auto', 'char', 'const', 'double', 'float', 'int', 'long',
  88. 'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
  89. 'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
  90. 'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
  91. 'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
  92. // OpenStep/GNUstep/Cocoa:
  93. 'SEL', 'id', 'NSRect', 'NSRange', 'NSPoint', 'NSZone', 'Class', 'IMP', 'BOOL',
  94. // OpenStep/GNUstep/Cocoa @identifiers
  95. '@selector', '@class', '@protocol', '@interface', '@implementation', '@end',
  96. '@private', '@protected', '@public', '@try', '@throw', '@catch', '@finally',
  97. '@encode', '@defs', '@synchronized'
  98. ),
  99. 5 => array( // OpenStep/GNUstep/Cocoa Foundation
  100. 'NSAppleEventDescriptor', 'NSNetService', 'NSAppleEventManager',
  101. 'NSNetServiceBrowser', 'NSAppleScript', 'NSNotification', 'NSArchiver',
  102. 'NSNotificationCenter', 'NSArray', 'NSNotificationQueue', 'NSAssertionHandler',
  103. 'NSNull', 'NSAttributedString', 'NSNumber', 'NSAutoreleasePool',
  104. 'NSNumberFormatter', 'NSBundle', 'NSObject', 'NSCachedURLResponse',
  105. 'NSOutputStream', 'NSCalendarDate', 'NSPipe', 'NSCharacterSet', 'NSPort',
  106. 'NSClassDescription', 'NSPortCoder', 'NSCloneCommand', 'NSPortMessage',
  107. 'NSCloseCommand', 'NSPortNameServer', 'NSCoder', 'NSPositionalSpecifier',
  108. 'NSConditionLock', 'NSProcessInfo', 'NSConnection', 'NSPropertyListSerialization',
  109. 'NSCountCommand', 'NSPropertySpecifier', 'NSCountedSet', 'NSProtocolChecker',
  110. 'NSCreateCommand', 'NSProxy', 'NSData', 'NSQuitCommand', 'NSDate',
  111. 'NSRandomSpecifier', 'NSDateFormatter', 'NSRangeSpecifier', 'NSDecimalNumber',
  112. 'NSRecursiveLock', 'NSDecimalNumberHandler', 'NSRelativeSpecifier',
  113. 'NSDeleteCommand', 'NSRunLoop', 'NSDeserializer', 'NSScanner', 'NSDictionary',
  114. 'NSScriptClassDescription', 'NSDirectoryEnumerator', 'NSScriptCoercionHandler',
  115. 'NSDistantObject', 'NSScriptCommand', 'NSDistantObjectRequest',
  116. 'NSScriptCommandDescription', 'NSDistributedLock', 'NSScriptExecutionContext',
  117. 'NSDistributedNotificationCenter', 'NSScriptObjectSpecifier', 'NSEnumerator',
  118. 'NSScriptSuiteRegistry', 'NSError', 'NSScriptWhoseTest', 'NSException',
  119. 'NSSerializer', 'NSExistsCommand', 'NSSet', 'NSFileHandle', 'NSSetCommand',
  120. 'NSFileManager', 'NSSocketPort', 'NSFormatter', 'NSSocketPortNameServer',
  121. 'NSGetCommand', 'NSSortDescriptor', 'NSHost', 'NSSpecifierTest', 'NSHTTPCookie',
  122. 'NSSpellServer', 'NSHTTPCookieStorage', 'NSStream', 'NSHTTPURLResponse',
  123. 'NSString', 'NSIndexSet', 'NSTask', 'NSIndexSpecifier', 'NSThread',
  124. 'NSInputStream', 'NSTimer', 'NSInvocation', 'NSTimeZone', 'NSKeyedArchiver',
  125. 'NSUnarchiver', 'NSKeyedUnarchiver', 'NSUndoManager', 'NSLock',
  126. 'NSUniqueIDSpecifier', 'NSLogicalTest', 'NSURL', 'NSMachBootstrapServer',
  127. 'NSURLAuthenticationChallenge', 'NSMachPort', 'NSURLCache', 'NSMessagePort',
  128. 'NSURLConnection', 'NSMessagePortNameServer', 'NSURLCredential',
  129. 'NSMethodSignature', 'NSURLCredentialStorage', 'NSMiddleSpecifier',
  130. 'NSURLDownload', 'NSMoveCommand', 'NSURLHandle', 'NSMutableArray',
  131. 'NSURLProtectionSpace', 'NSMutableAttributedString', 'NSURLProtocol',
  132. 'NSMutableCharacterSet', 'NSURLRequest', 'NSMutableData', 'NSURLResponse',
  133. 'NSMutableDictionary', 'NSUserDefaults', 'NSMutableIndexSet', 'NSValue',
  134. 'NSMutableSet', 'NSValueTransformer', 'NSMutableString', 'NSWhoseSpecifier',
  135. 'NSMutableURLRequest', 'NSXMLParser', 'NSNameSpecifier'
  136. ),
  137. 6 => array( // OpenStep/GNUstep/Cocoa AppKit
  138. 'NSActionCell', 'NSOpenGLPixelFormat', 'NSAffineTransform', 'NSOpenGLView',
  139. 'NSAlert', 'NSOpenPanel', 'NSAppleScript Additions', 'NSOutlineView',
  140. 'NSApplication', 'NSPageLayout', 'NSArrayController', 'NSPanel',
  141. 'NSATSTypesetter', 'NSParagraphStyle', 'NSPasteboard', 'NSBezierPath',
  142. 'NSPDFImageRep', 'NSBitmapImageRep', 'NSPICTImageRep', 'NSBox', 'NSPopUpButton',
  143. 'NSBrowser', 'NSPopUpButtonCell', 'NSBrowserCell', 'NSPrinter', 'NSPrintInfo',
  144. 'NSButton', 'NSPrintOperation', 'NSButtonCell', 'NSPrintPanel', 'NSCachedImageRep',
  145. 'NSProgressIndicator', 'NSCell', 'NSQuickDrawView', 'NSClipView', 'NSResponder',
  146. 'NSRulerMarker', 'NSColor', 'NSRulerView', 'NSColorList', 'NSSavePanel',
  147. 'NSColorPanel', 'NSScreen', 'NSColorPicker', 'NSScroller', 'NSColorWell',
  148. 'NSScrollView', 'NSComboBox', 'NSSearchField', 'NSComboBoxCell',
  149. 'NSSearchFieldCell', 'NSControl', 'NSSecureTextField', 'NSController',
  150. 'NSSecureTextFieldCell', 'NSCursor', 'NSSegmentedCell', 'NSCustomImageRep',
  151. 'NSSegmentedControl', 'NSDocument', 'NSShadow', 'NSDocumentController',
  152. 'NSSimpleHorizontalTypesetter', 'NSDrawer', 'NSSlider', 'NSEPSImageRep',
  153. 'NSSliderCell', 'NSEvent', 'NSSound', 'NSFileWrapper', 'NSSpeechRecognizer',
  154. 'NSFont', 'NSSpeechSynthesizer', 'NSFontDescriptor', 'NSSpellChecker',
  155. 'NSFontManager', 'NSSplitView', 'NSFontPanel', 'NSStatusBar', 'NSForm',
  156. 'NSStatusItem', 'NSFormCell', 'NSStepper', 'NSGlyphGenerator', 'NSStepperCell',
  157. 'NSGlyphInfo', 'NSGraphicsContext', 'NSTableColumn', 'NSHelpManager',
  158. 'NSTableHeaderCell', 'NSImage', 'NSTableHeaderView', 'NSImageCell', 'NSTableView',
  159. 'NSImageRep', 'NSTabView', 'NSImageView', 'NSTabViewItem', 'NSInputManager',
  160. 'NSText', 'NSInputServer', 'NSTextAttachment', 'NSLayoutManager',
  161. 'NSTextAttachmentCell', 'NSMatrix', 'NSTextContainer', 'NSMenu', 'NSTextField',
  162. 'NSMenuItem', 'NSTextFieldCell', 'NSMenuItemCell', 'NSTextStorage', 'NSMenuView',
  163. 'NSTextTab', 'NSMovie', 'NSTextView', 'NSMovieView', 'NSToolbar', 'NSToolbarItem',
  164. 'NSMutableParagraphStyle', 'NSTypesetter', 'NSNib', 'NSNibConnector',
  165. 'NSUserDefaultsController', 'NSNibControlConnector', 'NSView',
  166. 'NSNibOutletConnector', 'NSWindow', 'NSObjectController', 'NSWindowController',
  167. 'NSOpenGLContext', 'NSWorkspace', 'NSOpenGLPixelBuffer'
  168. )
  169. ),
  170. 'SYMBOLS' => array(
  171. '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
  172. ),
  173. 'CASE_SENSITIVE' => array(
  174. GESHI_COMMENTS => true,
  175. 1 => false,
  176. 2 => false,
  177. 3 => false,
  178. 4 => false,
  179. 5 => false,
  180. 6 => false,
  181. ),
  182. 'STYLES' => array(
  183. 'KEYWORDS' => array(
  184. 1 => 'color: #0000ff;',
  185. 2 => 'color: #0000ff;',
  186. 3 => 'color: #0000dd;',
  187. 4 => 'color: #0000ff;',
  188. 5 => 'color: #0000ff;',
  189. 6 => 'color: #0000ff;'
  190. ),
  191. 'COMMENTS' => array(
  192. 1 => 'color: #ff0000;',
  193. 2 => 'color: #339900;',
  194. 'MULTI' => 'color: #ff0000; font-style: italic;'
  195. ),
  196. 'ESCAPE_CHAR' => array(
  197. 0 => 'color: #666666; font-weight: bold;'
  198. ),
  199. 'BRACKETS' => array(
  200. 0 => 'color: #002200;'
  201. ),
  202. 'STRINGS' => array(
  203. 0 => 'color: #666666;'
  204. ),
  205. 'NUMBERS' => array(
  206. 0 => 'color: #0000dd;'
  207. ),
  208. 'METHODS' => array(
  209. ),
  210. 'SYMBOLS' => array(
  211. 0 => 'color: #002200;'
  212. ),
  213. 'REGEXPS' => array(
  214. ),
  215. 'SCRIPT' => array(
  216. )
  217. ),
  218. 'URLS' => array(
  219. 1 => '',
  220. 2 => '',
  221. 3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
  222. 4 => '',
  223. 5 => 'http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/{FNAME}.html',
  224. 6 => 'http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/{FNAME}.html'
  225. ),
  226. 'OOLANG' => false,
  227. 'OBJECT_SPLITTERS' => array(
  228. ),
  229. 'REGEXPS' => array(
  230. ),
  231. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  232. 'SCRIPT_DELIMITERS' => array(
  233. ),
  234. 'HIGHLIGHT_STRICT_BLOCK' => array(
  235. )
  236. );
  237. ?>