Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 2 | " Language: Objective-C |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 3 | " Maintainer: Kazunobu Kuriyama <kazunobu.kuriyama@gmail.com> |
Bram Moolenaar | 65e0d77 | 2020-06-14 17:29:55 +0200 | [diff] [blame] | 4 | " Last Change: 2020 Jun 07 |
| 5 | " Last Change By Maintainer: 2015 Dec 14 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 7 | """ Preparation for loading ObjC stuff |
| 8 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9 | finish |
| 10 | endif |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 11 | if &filetype != 'objcpp' |
| 12 | syn clear |
| 13 | runtime! syntax/c.vim |
| 14 | endif |
| 15 | let s:cpo_save = &cpo |
Bram Moolenaar | 9a7224b | 2012-04-30 15:56:52 +0200 | [diff] [blame] | 16 | set cpo&vim |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 17 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 18 | """ ObjC proper stuff follows... |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 19 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 20 | syn keyword objcPreProcMacro __OBJC__ __OBJC2__ __clang__ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 21 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 22 | " Defined Types |
Bram Moolenaar | 52b91d8 | 2013-06-15 21:39:51 +0200 | [diff] [blame] | 23 | syn keyword objcPrincipalType id Class SEL IMP BOOL instancetype |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 24 | syn keyword objcUsefulTerm nil Nil NO YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 25 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 26 | " Preprocessor Directives |
| 27 | syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ |
Bram Moolenaar | 65e0d77 | 2020-06-14 17:29:55 +0200 | [diff] [blame] | 28 | syn match objcImported display contained "\(<\h[-+a-zA-Z0-9_/]*\.h>\|<[a-z0-9]\+>\)" |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 29 | syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 30 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 31 | " ObjC Compiler Directives |
| 32 | syn match objcObjDef display /@interface\>\|@implementation\>\|@end\>\|@class\>/ |
| 33 | syn match objcProtocol display /@protocol\>\|@optional\>\|@required\>/ |
| 34 | syn match objcProperty display /@property\>\|@synthesize\>\|@dynamic\>/ |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 35 | syn match objcIvarScope display /@private\>\|@protected\>\|@public\>\|@package\>/ |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 36 | syn match objcInternalRep display /@selector\>\|@encode\>/ |
| 37 | syn match objcException display /@try\>\|@throw\>\|@catch\|@finally\>/ |
| 38 | syn match objcThread display /@synchronized\>/ |
| 39 | syn match objcPool display /@autoreleasepool\>/ |
Bram Moolenaar | 52b91d8 | 2013-06-15 21:39:51 +0200 | [diff] [blame] | 40 | syn match objcModuleImport display /@import\>/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 41 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 42 | " ObjC Constant Strings |
| 43 | syn match objcSpecial display contained "%@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 44 | syn region objcString start=+\(@"\|"\)+ skip=+\\\\\|\\"+ end=+"+ contains=cFormat,cSpecial,objcSpecial |
| 45 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 46 | " ObjC Hidden Arguments |
| 47 | syn keyword objcHiddenArgument self _cmd super |
| 48 | |
| 49 | " ObjC Type Qualifiers for Blocks |
| 50 | syn keyword objcBlocksQualifier __block |
| 51 | " ObjC Type Qualifiers for Object Lifetime |
| 52 | syn keyword objcObjectLifetimeQualifier __strong __weak __unsafe_unretained __autoreleasing |
| 53 | " ObjC Type Qualifiers for Toll-Free Bridge |
| 54 | syn keyword objcTollFreeBridgeQualifier __bridge __bridge_retained __bridge_transfer |
| 55 | |
| 56 | " ObjC Type Qualifiers for Remote Messaging |
| 57 | syn match objcRemoteMessagingQualifier display contained /\((\s*oneway\s\+\|(\s*in\s\+\|(\s*out\s\+\|(\s*inout\s\+\|(\s*bycopy\s\+\(in\(out\)\?\|out\)\?\|(\s*byref\s\+\(in\(out\)\?\|out\)\?\)/hs=s+1 |
| 58 | |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 59 | " ObjC Storage Classes |
| 60 | syn keyword objcStorageClass _Nullable _Nonnull _Null_unspecified |
| 61 | syn keyword objcStorageClass __nullable __nonnull __null_unspecified |
| 62 | syn keyword objcStorageClass nullable nonnull null_unspecified |
| 63 | |
| 64 | " ObjC type specifier |
| 65 | syn keyword objcTypeSpecifier __kindof __covariant |
| 66 | |
Bram Moolenaar | 6c391a7 | 2021-09-09 21:55:11 +0200 | [diff] [blame] | 67 | " ObjC Type Information Parameters |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 68 | syn keyword objcTypeInfoParams ObjectType KeyType |
| 69 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 70 | " shorthand |
| 71 | syn cluster objcTypeQualifier contains=objcBlocksQualifier,objcObjectLifetimeQualifier,objcTollFreeBridgeQualifier,objcRemoteMessagingQualifier |
| 72 | |
| 73 | " ObjC Fast Enumeration |
| 74 | syn match objcFastEnumKeyword display /\sin\(\s\|$\)/ |
| 75 | |
| 76 | " ObjC Literal Syntax |
| 77 | syn match objcLiteralSyntaxNumber display /@\(YES\>\|NO\>\|\d\|-\|+\)/ contains=cNumber,cFloat,cOctal |
| 78 | syn match objcLiteralSyntaxSpecialChar display /@'/ contains=cSpecialCharacter |
| 79 | syn match objcLiteralSyntaxChar display /@'[^\\]'/ |
| 80 | syn match objcLiteralSyntaxOp display /@\((\|\[\|{\)/me=e-1,he=e-1 |
| 81 | |
| 82 | " ObjC Declared Property Attributes |
| 83 | syn match objDeclPropAccessorNameAssign display /\s*=\s*/ contained |
| 84 | syn region objcDeclPropAccessorName display start=/\(getter\|setter\)/ end=/\h\w*/ contains=objDeclPropAccessorNameAssign |
| 85 | syn keyword objcDeclPropAccessorType readonly readwrite contained |
| 86 | syn keyword objcDeclPropAssignSemantics assign retain copy contained |
| 87 | syn keyword objcDeclPropAtomicity nonatomic contained |
| 88 | syn keyword objcDeclPropARC strong weak contained |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 89 | syn match objcDeclPropNullable /\((\|\s\)nullable\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained |
| 90 | syn match objcDeclPropNonnull /\((\|\s\)nonnull\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained |
| 91 | syn match objcDeclPropNullUnspecified /\((\|\s\)null_unspecified\(,\|)\)/ms=s+1,hs=s+1,me=e-1,he=e-1 contained |
| 92 | syn keyword objcDeclProcNullResettable null_resettable contained |
| 93 | syn region objcDeclProp display transparent keepend start=/@property\s*(/ end=/)/ contains=objcProperty,objcDeclPropAccessorName,objcDeclPropAccessorType,objcDeclPropAssignSemantics,objcDeclPropAtomicity,objcDeclPropARC,objcDeclPropNullable,objcDeclPropNonnull,objcDeclPropNullUnspecified,objcDeclProcNullResettable |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 94 | |
| 95 | " To distinguish colons in methods and dictionaries from those in C's labels. |
| 96 | syn match objcColon display /^\s*\h\w*\s*\:\(\s\|.\)/me=e-1,he=e-1 |
| 97 | |
| 98 | " To distinguish a protocol list from system header files |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 99 | syn match objcProtocolList display /<\h\w*\(\s*,\s*\h\w*\)*>/ contains=objcPrincipalType,cType,Type,objcType,objcTypeInfoParams |
| 100 | |
| 101 | " Type info for collection classes |
| 102 | syn match objcTypeInfo display /<\h\w*\s*<\(\h\w*\s*\**\|\h\w*\)>>/ contains=objcPrincipalType,cType,Type,objcType,objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 103 | |
| 104 | " shorthand |
| 105 | syn cluster objcCEntities contains=cType,cStructure,cStorageClass,cString,cCharacter,cSpecialCharacter,cNumbers,cConstant,cOperator,cComment,cCommentL,cStatement,cLabel,cConditional,cRepeat |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 106 | syn cluster objcObjCEntities contains=objcHiddenArgument,objcPrincipalType,objcString,objcUsefulTerm,objcProtocol,objcInternalRep,objcException,objcThread,objcPool,objcModuleImport,@objcTypeQualifier,objcLiteralSyntaxNumber,objcLiteralSyntaxOp,objcLiteralSyntaxChar,objcLiteralSyntaxSpecialChar,objcProtocolList,objcColon,objcFastEnumKeyword,objcType,objcClass,objcMacro,objcEnum,objcEnumValue,objcExceptionValue,objcNotificationValue,objcConstVar,objcPreProcMacro,objcTypeInfo |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 108 | " Objective-C Message Expressions |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 109 | syn region objcMethodCall start=/\[/ end=/\]/ contains=objcMethodCall,objcBlocks,@objcObjCEntities,@objcCEntities |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 110 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 111 | " To distinguish class method and instance method |
| 112 | syn match objcInstanceMethod display /^s*-\s*/ |
| 113 | syn match objcClassMethod display /^s*+\s*/ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 114 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 115 | " ObjC Blocks |
| 116 | syn region objcBlocks start=/\(\^\s*([^)]\+)\s*{\|\^\s*{\)/ end=/}/ contains=objcBlocks,objcMethodCall,@objcObjCEntities,@objcCEntities |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 117 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 118 | syn cluster cParenGroup add=objcMethodCall |
| 119 | syn cluster cPreProcGroup add=objcMethodCall |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 120 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 121 | """ Foundation Framework |
| 122 | syn match objcClass /Protocol\s*\*/me=s+8,he=s+8 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 123 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 124 | """"""""""""""""" |
| 125 | " NSObjCRuntime.h |
| 126 | syn keyword objcType NSInteger NSUInteger NSComparator |
| 127 | syn keyword objcEnum NSComparisonResult |
| 128 | syn keyword objcEnumValue NSOrderedAscending NSOrderedSame NSOrderedDescending |
| 129 | syn keyword objcEnum NSEnumerationOptions |
| 130 | syn keyword objcEnumValue NSEnumerationConcurrent NSEnumerationReverse |
| 131 | syn keyword objcEnum NSSortOptions |
| 132 | syn keyword objcEnumValue NSSortConcurrent NSSortStable |
| 133 | syn keyword objcEnumValue NSNotFound |
| 134 | syn keyword objcMacro NSIntegerMax NSIntegerMin NSUIntegerMax |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 135 | syn keyword objcMacro NS_INLINE NS_BLOCKS_AVAILABLE NS_NONATOMIC_IOSONLY NS_FORMAT_FUNCTION NS_FORMAT_ARGUMENT NS_RETURNS_RETAINED NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_AUTOMATED_REFCOUNT_UNAVAILABLE NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE NS_REQUIRES_PROPERTY_DEFINITIONS NS_REPLACES_RECEIVER NS_RELEASES_ARGUMENT NS_VALID_UNTIL_END_OF_SCOPE NS_ROOT_CLASS NS_REQUIRES_SUPER NS_PROTOCOL_REQUIRES_EXPLICIT_IMPLEMENTATION NS_DESIGNATED_INITIALIZER NS_REQUIRES_NIL_TERMINATION |
| 136 | syn keyword objcEnum NSQualityOfService |
| 137 | syn keyword objcEnumValue NSQualityOfServiceUserInteractive NSQualityOfServiceUserInitiated NSQualityOfServiceUtility NSQualityOfServiceBackground NSQualityOfServiceDefault |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 138 | " NSRange.h |
| 139 | syn keyword objcType NSRange NSRangePointer |
| 140 | " NSGeometry.h |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 141 | syn keyword objcType NSPoint NSPointPointer NSPointArray NSSize NSSizePointer NSSizeArray NSRect NSRectPointer NSRectArray NSEdgeInsets |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 142 | syn keyword objcEnum NSRectEdge |
| 143 | syn keyword objcEnumValue NSMinXEdge NSMinYEdge NSMaxXEdge NSMaxYEdge |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 144 | syn keyword objcEnumValue NSRectEdgeMinX NSRectEdgeMinY NSRectEdgeMaxX NSRectEdgeMaxY |
| 145 | syn keyword objcConstVar NSZeroPoint NSZeroSize NSZeroRect NSEdgeInsetsZero |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 146 | syn keyword cType CGFloat CGPoint CGSize CGRect |
| 147 | syn keyword objcEnum NSAlignmentOptions |
| 148 | syn keyword objcEnumValue NSAlignMinXInward NSAlignMinYInward NSAlignMaxXInward NSAlignMaxYInward NSAlignWidthInward NSAlignHeightInward NSAlignMinXOutward NSAlignMinYOutward NSAlignMaxXOutward NSAlignMaxYOutward NSAlignWidthOutward NSAlignHeightOutward NSAlignMinXNearest NSAlignMinYNearest NSAlignMaxXNearest NSAlignMaxYNearest NSAlignWidthNearest NSAlignHeightNearest NSAlignRectFlipped NSAlignAllEdgesInward NSAlignAllEdgesOutward NSAlignAllEdgesNearest |
| 149 | " NSDecimal.h |
| 150 | syn keyword objcType NSDecimal |
| 151 | syn keyword objcEnum NSRoundingMode |
| 152 | syn keyword objcEnumValue NSRoundPlain NSRoundDown NSRoundUp NSRoundBankers |
| 153 | syn keyword objcEnum NSCalculationError |
| 154 | syn keyword objcEnumValue NSCalculationNoError NSCalculationLossOfPrecision NSCalculationUnderflow NSCalculationOverflow NSCalculationDivideByZero |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 155 | syn keyword objcConstVar NSDecimalMaxSize NSDecimalNoScale |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 156 | " NSDate.h |
| 157 | syn match objcClass /NSDate\s*\*/me=s+6,he=s+6 |
| 158 | syn keyword objcType NSTimeInterval |
| 159 | syn keyword objcNotificationValue NSSystemClockDidChangeNotification |
| 160 | syn keyword objcMacro NSTimeIntervalSince1970 |
| 161 | " NSZone.h |
| 162 | syn match objcType /NSZone\s*\*/me=s+6,he=s+6 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 163 | syn keyword objcEnumValue NSScannedOption NSCollectorDisabledOption |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 164 | " NSError.h |
| 165 | syn match objcClass /NSError\s*\*/me=s+7,he=s+7 |
| 166 | syn keyword objcConstVar NSCocoaErrorDomain NSPOSIXErrorDomain NSOSStatusErrorDomain NSMachErrorDomain NSUnderlyingErrorKey NSLocalizedDescriptionKey NSLocalizedFailureReasonErrorKey NSLocalizedRecoverySuggestionErrorKey NSLocalizedRecoveryOptionsErrorKey NSRecoveryAttempterErrorKey NSHelpAnchorErrorKey NSStringEncodingErrorKey NSURLErrorKey NSFilePathErrorKey |
| 167 | " NSException.h |
| 168 | syn match objcClass /NSException\s*\*/me=s+11,he=s+11 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 169 | syn match objcClass /NSAssertionHandler\s*\*/me=s+18,he=s+18 |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 170 | syn keyword objcType NSUncaughtExceptionHandler |
| 171 | syn keyword objcConstVar NSGenericException NSRangeException NSInvalidArgumentException NSInternalInconsistencyException NSMallocException NSObjectInaccessibleException NSObjectNotAvailableException NSDestinationInvalidException NSPortTimeoutException NSInvalidSendPortException NSInvalidReceivePortException NSPortSendException NSPortReceiveException NSOldStyleException |
| 172 | " NSNotification.h |
| 173 | syn match objcClass /NSNotification\s*\*/me=s+14,he=s+14 |
| 174 | syn match objcClass /NSNotificationCenter\s*\*/me=s+20,he=s+20 |
| 175 | " NSDistributedNotificationCenter.h |
| 176 | syn match objcClass /NSDistributedNotificationCenter\s*\*/me=s+31,he=s+31 |
| 177 | syn keyword objcConstVar NSLocalNotificationCenterType |
| 178 | syn keyword objcEnum NSNotificationSuspensionBehavior |
| 179 | syn keyword objcEnumValue NSNotificationSuspensionBehaviorDrop NSNotificationSuspensionBehaviorCoalesce NSNotificationSuspensionBehaviorHold NSNotificationSuspensionBehaviorHold NSNotificationSuspensionBehaviorDeliverImmediately |
| 180 | syn keyword objcEnumValue NSNotificationDeliverImmediately NSNotificationPostToAllSessions |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 181 | syn keyword objcEnum NSDistributedNotificationOptions |
| 182 | syn keyword objcEnumValue NSDistributedNotificationDeliverImmediately NSDistributedNotificationPostToAllSessions |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 183 | " NSNotificationQueue.h |
| 184 | syn match objcClass /NSNotificationQueue\s*\*/me=s+19,he=s+19 |
| 185 | syn keyword objcEnum NSPostingStyle |
| 186 | syn keyword objcEnumValue NSPostWhenIdle NSPostASAP NSPostNow |
| 187 | syn keyword objcEnum NSNotificationCoalescing |
| 188 | syn keyword objcEnumValue NSNotificationNoCoalescing NSNotificationCoalescingOnName NSNotificationCoalescingOnSender |
| 189 | " NSEnumerator.h |
| 190 | syn match objcClass /NSEnumerator\s*\*/me=s+12,he=s+12 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 191 | syn match objcClass /NSEnumerator<.*>\s*\*/me=s+12,he=s+12 contains=objcTypeInfoParams |
| 192 | syn keyword objcType NSFastEnumerationState |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 193 | " NSIndexSet.h |
| 194 | syn match objcClass /NSIndexSet\s*\*/me=s+10,he=s+10 |
| 195 | syn match objcClass /NSMutableIndexSet\s*\*/me=s+17,he=s+17 |
| 196 | " NSCharecterSet.h |
| 197 | syn match objcClass /NSCharacterSet\s*\*/me=s+14,he=s+14 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 198 | syn match objcClass /NSMutableCharacterSet\s*\*/me=s+21,he=s+21 |
| 199 | syn keyword objcConstVar NSOpenStepUnicodeReservedBase |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 200 | " NSURL.h |
| 201 | syn match objcClass /NSURL\s*\*/me=s+5,he=s+5 |
| 202 | syn keyword objcEnum NSURLBookmarkCreationOptions |
| 203 | syn keyword objcEnumValue NSURLBookmarkCreationPreferFileIDResolution NSURLBookmarkCreationMinimalBookmark NSURLBookmarkCreationSuitableForBookmarkFile NSURLBookmarkCreationWithSecurityScope NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess |
| 204 | syn keyword objcEnum NSURLBookmarkResolutionOptions |
| 205 | syn keyword objcEnumValue NSURLBookmarkResolutionWithoutUI NSURLBookmarkResolutionWithoutMounting NSURLBookmarkResolutionWithSecurityScope |
| 206 | syn keyword objcType NSURLBookmarkFileCreationOptions |
| 207 | syn keyword objcConstVar NSURLFileScheme NSURLKeysOfUnsetValuesKey |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 208 | syn keyword objcConstVar NSURLNameKey NSURLLocalizedNameKey NSURLIsRegularFileKey NSURLIsDirectoryKey NSURLIsSymbolicLinkKey NSURLIsVolumeKey NSURLIsPackageKey NSURLIsApplicationKey NSURLApplicationIsScriptableKey NSURLIsSystemImmutableKey NSURLIsUserImmutableKey NSURLIsHiddenKey NSURLHasHiddenExtensionKey NSURLCreationDateKey NSURLContentAccessDateKey NSURLContentModificationDateKey NSURLAttributeModificationDateKey NSURLLinkCountKey NSURLParentDirectoryURLKey NSURLVolumeURLKey NSURLTypeIdentifierKey NSURLLocalizedTypeDescriptionKey NSURLLabelNumberKey NSURLLabelColorKey NSURLLocalizedLabelKey NSURLEffectiveIconKey NSURLCustomIconKey NSURLFileResourceIdentifierKey NSURLVolumeIdentifierKey NSURLPreferredIOBlockSizeKey NSURLIsReadableKey NSURLIsWritableKey NSURLIsExecutableKey NSURLFileSecurityKey NSURLIsExcludedFromBackupKey NSURLTagNamesKey NSURLPathKey NSURLIsMountTriggerKey NSURLGenerationIdentifierKey NSURLDocumentIdentifierKey NSURLAddedToDirectoryDateKey NSURLQuarantinePropertiesKey NSURLFileResourceTypeKey |
| 209 | syn keyword objcConstVar NSURLFileResourceTypeNamedPipe NSURLFileResourceTypeCharacterSpecial NSURLFileResourceTypeDirectory NSURLFileResourceTypeBlockSpecial NSURLFileResourceTypeRegular NSURLFileResourceTypeSymbolicLink NSURLFileResourceTypeSocket NSURLFileResourceTypeUnknown NSURLThumbnailDictionaryKey NSURLThumbnailKey NSThumbnail1024x1024SizeKey |
| 210 | syn keyword objcConstVar NSURLFileSizeKey NSURLFileAllocatedSizeKey NSURLTotalFileSizeKey NSURLTotalFileAllocatedSizeKey NSURLIsAliasFileKey NSURLFileProtectionKey NSURLFileProtectionNone NSURLFileProtectionComplete NSURLFileProtectionCompleteUnlessOpen NSURLFileProtectionCompleteUntilFirstUserAuthentication |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 211 | syn keyword objcConstVar NSURLVolumeLocalizedFormatDescriptionKey NSURLVolumeTotalCapacityKey NSURLVolumeAvailableCapacityKey NSURLVolumeResourceCountKey NSURLVolumeSupportsPersistentIDsKey NSURLVolumeSupportsSymbolicLinksKey NSURLVolumeSupportsHardLinksKey NSURLVolumeSupportsJournalingKey NSURLVolumeIsJournalingKey NSURLVolumeSupportsSparseFilesKey NSURLVolumeSupportsZeroRunsKey NSURLVolumeSupportsCaseSensitiveNamesKey NSURLVolumeSupportsCasePreservedNamesKey NSURLVolumeSupportsRootDirectoryDatesKey NSURLVolumeSupportsVolumeSizesKey NSURLVolumeSupportsRenamingKey NSURLVolumeSupportsAdvisoryFileLockingKey NSURLVolumeSupportsExtendedSecurityKey NSURLVolumeIsBrowsableKey NSURLVolumeMaximumFileSizeKey NSURLVolumeIsEjectableKey NSURLVolumeIsRemovableKey NSURLVolumeIsInternalKey NSURLVolumeIsAutomountedKey NSURLVolumeIsLocalKey NSURLVolumeIsReadOnlyKey NSURLVolumeCreationDateKey NSURLVolumeURLForRemountingKey NSURLVolumeUUIDStringKey NSURLVolumeNameKey NSURLVolumeLocalizedNameKey |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 212 | syn keyword objcConstVar NSURLIsUbiquitousItemKey NSURLUbiquitousItemHasUnresolvedConflictsKey NSURLUbiquitousItemIsDownloadedKey NSURLUbiquitousItemIsDownloadingKey NSURLUbiquitousItemIsUploadedKey NSURLUbiquitousItemIsUploadingKey NSURLUbiquitousItemPercentDownloadedKey NSURLUbiquitousItemPercentUploadedKey NSURLUbiquitousItemDownloadingStatusKey NSURLUbiquitousItemDownloadingErrorKey NSURLUbiquitousItemUploadingErrorKey NSURLUbiquitousItemDownloadRequestedKey NSURLUbiquitousItemContainerDisplayNameKey NSURLUbiquitousItemDownloadingStatusNotDownloaded NSURLUbiquitousItemDownloadingStatusDownloaded NSURLUbiquitousItemDownloadingStatusCurrent |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 213 | """""""""""" |
| 214 | " NSString.h |
| 215 | syn match objcClass /NSString\s*\*/me=s+8,he=s+8 |
| 216 | syn match objcClass /NSMutableString\s*\*/me=s+15,he=s+15 |
| 217 | syn keyword objcType unichar |
| 218 | syn keyword objcExceptionValue NSParseErrorException NSCharacterConversionException |
| 219 | syn keyword objcMacro NSMaximumStringLength |
| 220 | syn keyword objcEnum NSStringCompareOptions |
| 221 | syn keyword objcEnumValue NSCaseInsensitiveSearch NSLiteralSearch NSBackwardsSearch NSAnchoredSearch NSNumericSearch NSDiacriticInsensitiveSearch NSWidthInsensitiveSearch NSForcedOrderingSearch NSRegularExpressionSearch |
| 222 | syn keyword objcEnum NSStringEncoding |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 223 | syn keyword objcEnumValue NSProprietaryStringEncoding |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 224 | syn keyword objcEnumValue NSASCIIStringEncoding NSNEXTSTEPStringEncoding NSJapaneseEUCStringEncoding NSUTF8StringEncoding NSISOLatin1StringEncoding NSSymbolStringEncoding NSNonLossyASCIIStringEncoding NSShiftJISStringEncoding NSISOLatin2StringEncoding NSUnicodeStringEncoding NSWindowsCP1251StringEncoding NSWindowsCP1252StringEncoding NSWindowsCP1253StringEncoding NSWindowsCP1254StringEncoding NSWindowsCP1250StringEncoding NSISO2022JPStringEncoding NSMacOSRomanStringEncoding NSUTF16StringEncoding NSUTF16BigEndianStringEncoding NSUTF16LittleEndianStringEncoding NSUTF32StringEncoding NSUTF32BigEndianStringEncoding NSUTF32LittleEndianStringEncoding |
| 225 | syn keyword objcEnum NSStringEncodingConversionOptions |
| 226 | syn keyword objcEnumValue NSStringEncodingConversionAllowLossy NSStringEncodingConversionExternalRepresentation |
| 227 | syn keyword objcEnum NSStringEnumerationOptions |
| 228 | syn keyword objcEnumValue NSStringEnumerationByLines NSStringEnumerationByParagraphs NSStringEnumerationByComposedCharacterSequences NSStringEnumerationByWords NSStringEnumerationBySentences NSStringEnumerationReverse NSStringEnumerationSubstringNotRequired NSStringEnumerationLocalized |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 229 | syn keyword objcConstVar NSStringTransformLatinToKatakana NSStringTransformLatinToHiragana NSStringTransformLatinToHangul NSStringTransformLatinToArabic NSStringTransformLatinToHebrew NSStringTransformLatinToThai NSStringTransformLatinToCyrillic NSStringTransformLatinToGreek NSStringTransformToLatin NSStringTransformMandarinToLatin NSStringTransformHiraganaToKatakana NSStringTransformFullwidthToHalfwidth NSStringTransformToXMLHex NSStringTransformToUnicodeName NSStringTransformStripCombiningMarks NSStringTransformStripDiacritics |
| 230 | syn keyword objcConstVar NSStringEncodingDetectionSuggestedEncodingsKey NSStringEncodingDetectionDisallowedEncodingsKey NSStringEncodingDetectionUseOnlySuggestedEncodingsKey NSStringEncodingDetectionAllowLossyKey NSStringEncodingDetectionFromWindowsKey NSStringEncodingDetectionLossySubstitutionKey NSStringEncodingDetectionLikelyLanguageKey |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 231 | " NSAttributedString.h |
| 232 | syn match objcClass /NSAttributedString\s*\*/me=s+18,he=s+18 |
| 233 | syn match objcClass /NSMutableAttributedString\s*\*/me=s+25,he=s+25 |
| 234 | syn keyword objcEnum NSAttributedStringEnumerationOptions |
| 235 | syn keyword objcEnumValue NSAttributedStringEnumerationReverse NSAttributedStringEnumerationLongestEffectiveRangeNotRequired |
| 236 | " NSValue.h |
| 237 | syn match objcClass /NSValue\s*\*/me=s+7,he=s+7 |
| 238 | syn match objcClass /NSNumber\s*\*/me=s+8,he=s+8 |
| 239 | " NSDecimalNumber.h |
| 240 | syn match objcClass /NSDecimalNumber\s*\*/me=s+15,he=s+15 |
| 241 | syn match objcClass /NSDecimalNumberHandler\s*\*/me=s+22,he=s+22 |
| 242 | syn keyword objcExceptionValue NSDecimalNumberExactnessException NSDecimalNumberOverflowException NSDecimalNumberUnderflowException NSDecimalNumberDivideByZeroException |
| 243 | " NSData.h |
| 244 | syn match objcClass /NSData\s*\*/me=s+6,he=s+6 |
| 245 | syn match objcClass /NSMutableData\s*\*/me=s+13,he=s+13 |
| 246 | syn keyword objcEnum NSDataReadingOptions |
| 247 | syn keyword objcEnumValue NSDataReadingMappedIfSafe NSDataReadingUncached NSDataReadingMappedAlways NSDataReadingMapped NSMappedRead NSUncachedRead |
| 248 | syn keyword objcEnum NSDataWritingOptions |
| 249 | syn keyword objcEnumValue NSDataWritingAtomic NSDataWritingWithoutOverwriting NSDataWritingFileProtectionNone NSDataWritingFileProtectionComplete NSDataWritingFileProtectionCompleteUnlessOpen NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication NSDataWritingFileProtectionMask NSAtomicWrite |
| 250 | syn keyword objcEnum NSDataSearchOptions |
| 251 | syn keyword objcEnumValue NSDataSearchBackwards NSDataSearchAnchored |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 252 | syn keyword objcEnum NSDataBase64EncodingOptions NSDataBase64DecodingOptions |
| 253 | syn keyword objcEnumValue NSDataBase64Encoding64CharacterLineLength NSDataBase64Encoding76CharacterLineLength NSDataBase64EncodingEndLineWithCarriageReturn NSDataBase64EncodingEndLineWithLineFeed NSDataBase64DecodingIgnoreUnknownCharacters |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 254 | " NSArray.h |
| 255 | syn match objcClass /NSArray\s*\*/me=s+7,he=s+7 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 256 | syn match objcClass /NSArray<.*>\s*\*/me=s+7,he=s+7 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 257 | syn match objcClass /NSMutableArray\s*\*/me=s+14,he=s+14 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 258 | syn match objcClass /NSMutableArray<.*>\s*\*/me=s+14,he=s+14 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 259 | syn keyword objcEnum NSBinarySearchingOptions |
| 260 | syn keyword objcEnumValue NSBinarySearchingFirstEqual NSBinarySearchingLastEqual NSBinarySearchingInsertionIndex |
| 261 | " NSDictionary.h |
| 262 | syn match objcClass /NSDictionary\s*\*/me=s+12,he=s+12 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 263 | syn match objcClass /NSDictionary<.*>\s*\*/me=s+12,he=s+12 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 264 | syn match objcClass /NSMutableDictionary\s*\*/me=s+19,he=s+19 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 265 | syn match objcClass /NSMutableDictionary<.*>\s*\*/me=s+19,he=s+19 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 266 | " NSSet.h |
| 267 | syn match objcClass /NSSet\s*\*/me=s+5,me=s+5 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 268 | syn match objcClass /NSSet<.*>\s*\*/me=s+5,me=s+5 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 269 | syn match objcClass /NSMutableSet\s*\*/me=s+12,me=s+12 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 270 | syn match objcClass /NSMutableSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 271 | syn match objcClass /NSCountedSet\s*\*/me=s+12,me=s+12 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 272 | syn match objcClass /NSCountedSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 273 | " NSOrderedSet.h |
| 274 | syn match objcClass /NSOrderedSet\s*\*/me=s+12,me=s+12 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 275 | syn match objcClass /NSOrderedSet<.*>\s*\*/me=s+12,me=s+12 contains=objcTypeInfoParams |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 276 | syn match objcClass /NSMutableOrderedSet\s*\*/me=s+19,me=s+19 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 277 | syn match objcClass /NSMutableOrderedSet<.*>\s*\*/me=s+19,me=s+19 |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 278 | """"""""""""""""""" |
| 279 | " NSPathUtilities.h |
| 280 | syn keyword objcEnum NSSearchPathDirectory |
| 281 | syn keyword objcEnumValue NSApplicationDirectory NSDemoApplicationDirectory NSDeveloperApplicationDirectory NSAdminApplicationDirectory NSLibraryDirectory NSDeveloperDirectory NSUserDirectory NSDocumentationDirectory NSDocumentDirectory NSCoreServiceDirectory NSAutosavedInformationDirectory NSDesktopDirectory NSCachesDirectory NSApplicationSupportDirectory NSDownloadsDirectory NSInputMethodsDirectory NSMoviesDirectory NSMusicDirectory NSPicturesDirectory NSPrinterDescriptionDirectory NSSharedPublicDirectory NSPreferencePanesDirectory NSApplicationScriptsDirectory NSItemReplacementDirectory NSAllApplicationsDirectory NSAllLibrariesDirectory NSTrashDirectory |
| 282 | syn keyword objcEnum NSSearchPathDomainMask |
| 283 | syn keyword objcEnumValue NSUserDomainMask NSLocalDomainMask NSNetworkDomainMask NSSystemDomainMask NSAllDomainsMask |
| 284 | " NSFileManger.h |
| 285 | syn match objcClass /NSFileManager\s*\*/me=s+13,he=s+13 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 286 | syn match objcClass /NSDirectoryEnumerator\s*\*/me=s+21,he=s+21 contains=objcTypeInfoParams |
| 287 | syn match objcClass /NSDirectoryEnumerator<.*>\s*\*/me=s+21,he=s+21 |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 288 | syn keyword objcEnum NSVolumeEnumerationOptions |
| 289 | syn keyword objcEnumValue NSVolumeEnumerationSkipHiddenVolumes NSVolumeEnumerationProduceFileReferenceURLs |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 290 | syn keyword objcEnum NSURLRelationship |
| 291 | syn keyword objcEnumValue NSURLRelationshipContains NSURLRelationshipSame NSURLRelationshipOther |
| 292 | syn keyword objcEnum NSFileManagerUnmountOptions |
| 293 | syn keyword objcEnumValue NSFileManagerUnmountAllPartitionsAndEjectDisk NSFileManagerUnmountWithoutUI |
| 294 | syn keyword objcConstVar NSFileManagerUnmountDissentingProcessIdentifierErrorKey |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 295 | syn keyword objcEnum NSDirectoryEnumerationOptions |
| 296 | syn keyword objcEnumValue NSDirectoryEnumerationSkipsSubdirectoryDescendants NSDirectoryEnumerationSkipsPackageDescendants NSDirectoryEnumerationSkipsHiddenFiles |
| 297 | syn keyword objcEnum NSFileManagerItemReplacementOptions |
| 298 | syn keyword objcEnumValue NSFileManagerItemReplacementUsingNewMetadataOnly NSFileManagerItemReplacementWithoutDeletingBackupItem |
| 299 | syn keyword objcNotificationValue NSUbiquityIdentityDidChangeNotification |
| 300 | syn keyword objcConstVar NSFileType NSFileTypeDirectory NSFileTypeRegular NSFileTypeSymbolicLink NSFileTypeSocket NSFileTypeCharacterSpecial NSFileTypeBlockSpecial NSFileTypeUnknown NSFileSize NSFileModificationDate NSFileReferenceCount NSFileDeviceIdentifier NSFileOwnerAccountName NSFileGroupOwnerAccountName NSFilePosixPermissions NSFileSystemNumber NSFileSystemFileNumber NSFileExtensionHidden NSFileHFSCreatorCode NSFileHFSTypeCode NSFileImmutable NSFileAppendOnly NSFileCreationDate NSFileOwnerAccountID NSFileGroupOwnerAccountID NSFileBusy NSFileProtectionKey NSFileProtectionNone NSFileProtectionComplete NSFileProtectionCompleteUnlessOpen NSFileProtectionCompleteUntilFirstUserAuthentication NSFileSystemSize NSFileSystemFreeSize NSFileSystemNodes NSFileSystemFreeNodes |
| 301 | " NSFileHandle.h |
| 302 | syn match objcClass /NSFileHandle\s*\*/me=s+12,he=s+12 |
| 303 | syn keyword objcExceptionValue NSFileHandleOperationException |
| 304 | syn keyword objcNotificationValue NSFileHandleReadCompletionNotification NSFileHandleReadToEndOfFileCompletionNotification NSFileHandleConnectionAcceptedNotification NSFileHandleDataAvailableNotification NSFileHandleNotificationDataItem NSFileHandleNotificationFileHandleItem NSFileHandleNotificationMonitorModes |
| 305 | syn match objcClass /NSPipe\s*\*/me=s+6,he=s+6 |
| 306 | """""""""""" |
| 307 | " NSLocale.h |
| 308 | syn match objcClass /NSLocale\s*\*/me=s+8,he=s+8 |
| 309 | syn keyword objcEnum NSLocaleLanguageDirection |
| 310 | syn keyword objcEnumValue NSLocaleLanguageDirectionUnknown NSLocaleLanguageDirectionLeftToRight NSLocaleLanguageDirectionRightToLeft NSLocaleLanguageDirectionTopToBottom NSLocaleLanguageDirectionBottomToTop |
| 311 | syn keyword objcNotificationValue NSCurrentLocaleDidChangeNotification |
| 312 | syn keyword objcConstVar NSLocaleIdentifier NSLocaleLanguageCode NSLocaleCountryCode NSLocaleScriptCode NSLocaleVariantCode NSLocaleExemplarCharacterSet NSLocaleCalendar NSLocaleCollationIdentifier NSLocaleUsesMetricSystem NSLocaleMeasurementSystem NSLocaleDecimalSeparator NSLocaleGroupingSeparator NSLocaleCurrencySymbol NSLocaleCurrencyCode NSLocaleCollatorIdentifier NSLocaleQuotationBeginDelimiterKey NSLocaleQuotationEndDelimiterKey NSLocaleAlternateQuotationBeginDelimiterKey NSLocaleAlternateQuotationEndDelimiterKey NSGregorianCalendar NSBuddhistCalendar NSChineseCalendar NSHebrewCalendar NSIslamicCalendar NSIslamicCivilCalendar NSJapaneseCalendar NSRepublicOfChinaCalendar NSPersianCalendar NSIndianCalendar NSISO8601Calendar |
| 313 | " NSFormatter.h |
| 314 | syn match objcClass /NSFormatter\s*\*/me=s+11,he=s+11 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 315 | syn keyword objcEnum NSFormattingContext NSFormattingUnitStyle |
| 316 | syn keyword objcEnumValue NSFormattingContextUnknown NSFormattingContextDynamic NSFormattingContextStandalone NSFormattingContextListItem NSFormattingContextBeginningOfSentence NSFormattingContextMiddleOfSentence NSFormattingUnitStyleShort NSFormattingUnitStyleMedium NSFormattingUnitStyleLong |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 317 | " NSNumberFormatter.h |
| 318 | syn match objcClass /NSNumberFormatter\s*\*/me=s+17,he=s+17 |
| 319 | syn keyword objcEnum NSNumberFormatterStyle |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 320 | syn keyword objcEnumValue NSNumberFormatterNoStyle NSNumberFormatterDecimalStyle NSNumberFormatterCurrencyStyle NSNumberFormatterPercentStyle NSNumberFormatterScientificStyle NSNumberFormatterSpellOutStyle NSNumberFormatterOrdinalStyle NSNumberFormatterCurrencyISOCodeStyle NSNumberFormatterCurrencyPluralStyle NSNumberFormatterCurrencyAccountingStyle |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 321 | syn keyword objcEnum NSNumberFormatterBehavior |
| 322 | syn keyword objcEnumValue NSNumberFormatterBehaviorDefault NSNumberFormatterBehavior10_0 NSNumberFormatterBehavior10_4 |
| 323 | syn keyword objcEnum NSNumberFormatterPadPosition |
| 324 | syn keyword objcEnumValue NSNumberFormatterPadBeforePrefix NSNumberFormatterPadAfterPrefix NSNumberFormatterPadBeforeSuffix NSNumberFormatterPadAfterSuffix |
| 325 | syn keyword objcEnum NSNumberFormatterRoundingMode |
| 326 | syn keyword objcEnumValue NSNumberFormatterRoundCeiling NSNumberFormatterRoundFloor NSNumberFormatterRoundDown NSNumberFormatterRoundUp NSNumberFormatterRoundHalfEven NSNumberFormatterRoundHalfDown NSNumberFormatterRoundHalfUp |
| 327 | " NSDateFormatter.h |
| 328 | syn match objcClass /NSDateFormatter\s*\*/me=s+15,he=s+15 |
| 329 | syn keyword objcEnum NSDateFormatterStyle |
| 330 | syn keyword objcEnumValue NSDateFormatterNoStyle NSDateFormatterShortStyle NSDateFormatterMediumStyle NSDateFormatterLongStyle NSDateFormatterFullStyle |
| 331 | syn keyword objcEnum NSDateFormatterBehavior |
| 332 | syn keyword objcEnumValue NSDateFormatterBehaviorDefault NSDateFormatterBehavior10_0 NSDateFormatterBehavior10_4 |
| 333 | " NSCalendar.h |
| 334 | syn match objcClass /NSCalendar\s*\*/me=s+10,he=s+10 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 335 | syn keyword objcConstVar NSCalendarIdentifierGregorian NSCalendarIdentifierBuddhist NSCalendarIdentifierChinese NSCalendarIdentifierCoptic NSCalendarIdentifierEthiopicAmeteMihret NSCalendarIdentifierEthiopicAmeteAlem NSCalendarIdentifierHebrew NSCalendarIdentifierISO8601 NSCalendarIdentifierIndian NSCalendarIdentifierIslamic NSCalendarIdentifierIslamicCivil NSCalendarIdentifierJapanese NSCalendarIdentifierPersian NSCalendarIdentifierRepublicOfChina NSCalendarIdentifierIslamicTabular NSCalendarIdentifierIslamicUmmAlQura |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 336 | syn keyword objcEnum NSCalendarUnit |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 337 | syn keyword objcEnumValue NSCalendarUnitEra NSCalendarUnitYear NSCalendarUnitMonth NSCalendarUnitDay NSCalendarUnitHour NSCalendarUnitMinute NSCalendarUnitSecond NSCalendarUnitWeekday NSCalendarUnitWeekdayOrdinal NSCalendarUnitQuarter NSCalendarUnitWeekOfMonth NSCalendarUnitWeekOfYear NSCalendarUnitYearForWeekOfYear NSCalendarUnitNanosecond NSCalendarUnitCalendar NSCalendarUnitTimeZone |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 338 | syn keyword objcEnumValue NSEraCalendarUnit NSYearCalendarUnit NSMonthCalendarUnit NSDayCalendarUnit NSHourCalendarUnit NSMinuteCalendarUnit NSSecondCalendarUnit NSWeekCalendarUnit NSWeekdayCalendarUnit NSWeekdayOrdinalCalendarUnit NSQuarterCalendarUnit NSWeekOfMonthCalendarUnit NSWeekOfYearCalendarUnit NSYearForWeekOfYearCalendarUnit NSCalendarCalendarUnit NSTimeZoneCalendarUnit |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 339 | syn keyword objcEnumValue NSWrapCalendarComponents NSUndefinedDateComponent NSDateComponentUndefined |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 340 | syn match objcClass /NSDateComponents\s*\*/me=s+16,he=s+16 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 341 | syn keyword objcEnum NSCalendarOptions |
| 342 | syn keyword objcEnumValue NSCalendarWrapComponents NSCalendarMatchStrictly NSCalendarSearchBackwards NSCalendarMatchPreviousTimePreservingSmallerUnits NSCalendarMatchNextTimePreservingSmallerUnits NSCalendarMatchNextTime NSCalendarMatchFirst NSCalendarMatchLast |
| 343 | syn keyword objcConstVar NSCalendarDayChangedNotification |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 344 | " NSTimeZone.h |
| 345 | syn match objcClass /NSTimeZone\s*\*/me=s+10,he=s+10 |
| 346 | syn keyword objcEnum NSTimeZoneNameStyle |
| 347 | syn keyword objcEnumValue NSTimeZoneNameStyleStandard NSTimeZoneNameStyleShortStandard NSTimeZoneNameStyleDaylightSaving NSTimeZoneNameStyleShortDaylightSaving NSTimeZoneNameStyleGeneric NSTimeZoneNameStyleShortGeneric |
| 348 | syn keyword objcNotificationValue NSSystemTimeZoneDidChangeNotification |
| 349 | """"""""""" |
| 350 | " NSCoder.h |
| 351 | syn match objcClass /NSCoder\s*\*/me=s+7,he=s+7 |
| 352 | " NSArchiver.h |
| 353 | syn match objcClass /NSArchiver\s*\*/me=s+10,he=s+10 |
| 354 | syn match objcClass /NSUnarchiver\s*\*/me=s+12,he=s+12 |
| 355 | syn keyword objcExceptionValue NSInconsistentArchiveException |
| 356 | " NSKeyedArchiver.h |
| 357 | syn match objcClass /NSKeyedArchiver\s*\*/me=s+15,he=s+15 |
| 358 | syn match objcClass /NSKeyedUnarchiver\s*\*/me=s+17,he=s+17 |
| 359 | syn keyword objcExceptionValue NSInvalidArchiveOperationException NSInvalidUnarchiveOperationException |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 360 | syn keyword objcConstVar NSKeyedArchiveRootObjectKey |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 361 | """""""""""""""""" |
| 362 | " NSPropertyList.h |
| 363 | syn keyword objcEnum NSPropertyListMutabilityOptions |
| 364 | syn keyword objcEnumValue NSPropertyListImmutable NSPropertyListMutableContainers NSPropertyListMutableContainersAndLeaves |
| 365 | syn keyword objcEnum NSPropertyListFormat |
| 366 | syn keyword objcEnumValue NSPropertyListOpenStepFormat NSPropertyListXMLFormat_v1_0 NSPropertyListBinaryFormat_v1_0 |
| 367 | syn keyword objcType NSPropertyListReadOptions NSPropertyListWriteOptions |
| 368 | " NSUserDefaults.h |
| 369 | syn match objcClass /NSUserDefaults\s*\*/me=s+14,he=s+14 |
| 370 | syn keyword objcConstVar NSGlobalDomain NSArgumentDomain NSRegistrationDomain |
| 371 | syn keyword objcNotificationValue NSUserDefaultsDidChangeNotification |
| 372 | " NSBundle.h |
| 373 | syn match objcClass /NSBundle\s*\*/me=s+8,he=s+8 |
| 374 | syn keyword objcEnumValue NSBundleExecutableArchitectureI386 NSBundleExecutableArchitecturePPC NSBundleExecutableArchitectureX86_64 NSBundleExecutableArchitecturePPC64 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 375 | syn keyword objcNotificationValue NSBundleDidLoadNotification NSLoadedClasses NSBundleResourceRequestLowDiskSpaceNotification |
| 376 | syn keyword objcConstVar NSBundleResourceRequestLoadingPriorityUrgent |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 377 | """"""""""""""""" |
| 378 | " NSProcessInfo.h |
| 379 | syn match objcClass /NSProcessInfo\s*\*/me=s+13,he=s+13 |
| 380 | syn keyword objcEnumValue NSWindowsNTOperatingSystem NSWindows95OperatingSystem NSSolarisOperatingSystem NSHPUXOperatingSystem NSMACHOperatingSystem NSSunOSOperatingSystem NSOSF1OperatingSystem |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 381 | syn keyword objcType NSOperatingSystemVersion |
| 382 | syn keyword objcEnum NSActivityOptions NSProcessInfoThermalState |
| 383 | syn keyword objcEnumValue NSActivityIdleDisplaySleepDisabled NSActivityIdleSystemSleepDisabled NSActivitySuddenTerminationDisabled NSActivityAutomaticTerminationDisabled NSActivityUserInitiated NSActivityUserInitiatedAllowingIdleSystemSleep NSActivityBackground NSActivityLatencyCritical NSProcessInfoThermalStateNominal NSProcessInfoThermalStateFair NSProcessInfoThermalStateSerious NSProcessInfoThermalStateCritical |
| 384 | syn keyword objcNotificationValue NSProcessInfoThermalStateDidChangeNotification NSProcessInfoPowerStateDidChangeNotification |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 385 | " NSTask.h |
| 386 | syn match objcClass /NSTask\s*\*/me=s+6,he=s+6 |
| 387 | syn keyword objcEnum NSTaskTerminationReason |
| 388 | syn keyword objcEnumValue NSTaskTerminationReasonExit NSTaskTerminationReasonUncaughtSignal |
| 389 | syn keyword objcNotificationValue NSTaskDidTerminateNotification |
| 390 | " NSThread.h |
| 391 | syn match objcClass /NSThread\s*\*/me=s+8,he=s+8 |
| 392 | syn keyword objcNotificationValue NSWillBecomeMultiThreadedNotification NSDidBecomeSingleThreadedNotification NSThreadWillExitNotification |
| 393 | " NSLock.h |
| 394 | syn match objcClass /NSLock\s*\*/me=s+6,he=s+6 |
| 395 | syn match objcClass /NSConditionLock\s*\*/me=s+15,he=s+15 |
| 396 | syn match objcClass /NSRecursiveLock\s*\*/me=s+15,he=s+15 |
| 397 | " NSDictributedLock |
| 398 | syn match objcClass /NSDistributedLock\s*\*/me=s+17,he=s+17 |
| 399 | " NSOperation.h |
| 400 | """""""""""""""" |
| 401 | syn match objcClass /NSOperation\s*\*/me=s+11,he=s+11 |
| 402 | syn keyword objcEnum NSOperationQueuePriority |
| 403 | syn keyword objcEnumValue NSOperationQueuePriorityVeryLow NSOperationQueuePriorityLow NSOperationQueuePriorityNormal NSOperationQueuePriorityHigh NSOperationQueuePriorityVeryHigh |
| 404 | syn match objcClass /NSBlockOperation\s*\*/me=s+16,he=s+16 |
| 405 | syn match objcClass /NSInvocationOperation\s*\*/me=s+21,he=s+21 |
| 406 | syn keyword objcExceptionValue NSInvocationOperationVoidResultException NSInvocationOperationCancelledException |
| 407 | syn match objcClass /NSOperationQueue\s*\*/me=s+16,he=s+16 |
| 408 | syn keyword objcEnumValue NSOperationQueueDefaultMaxConcurrentOperationCount |
| 409 | " NSConnection.h |
| 410 | syn match objcClass /NSConnection\s*\*/me=s+12,he=s+12 |
| 411 | syn keyword objcConstVar NSConnectionReplyMode |
| 412 | syn keyword objcNotificationValue NSConnectionDidDieNotification NSConnectionDidInitializeNotification |
| 413 | syn keyword objcExceptionValue NSFailedAuthenticationException |
| 414 | " NSPort.h |
| 415 | syn match objcClass /NSPort\s*\*/me=s+6,he=s+6 |
| 416 | syn keyword objcType NSSocketNativeHandle |
| 417 | syn keyword objcNotificationValue NSPortDidBecomeInvalidNotification |
| 418 | syn match objcClass /NSMachPort\s*\*/me=s+10,he=s+10 |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 419 | syn keyword objcEnum NSMachPortOptions |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 420 | syn keyword objcEnumValue NSMachPortDeallocateNone NSMachPortDeallocateSendRight NSMachPortDeallocateReceiveRight |
| 421 | syn match objcClass /NSMessagePort\s*\*/me=s+13,he=s+13 |
| 422 | syn match objcClass /NSSocketPort\s*\*/me=s+12,he=s+12 |
| 423 | " NSPortMessage.h |
| 424 | syn match objcClass /NSPortMessage\s*\*/me=s+13,he=s+13 |
| 425 | " NSDistantObject.h |
| 426 | syn match objcClass /NSDistantObject\s*\*/me=s+15,he=s+15 |
| 427 | " NSPortNameServer.h |
| 428 | syn match objcClass /NSPortNameServer\s*\*/me=s+16,he=s+16 |
| 429 | syn match objcClass /NSMessagePortNameServer\s*\*/me=s+23,he=s+23 |
| 430 | syn match objcClass /NSSocketPortNameServer\s*\*/me=s+22,he=s+22 |
| 431 | " NSHost.h |
| 432 | syn match objcClass /NSHost\s*\*/me=s+6,he=s+6 |
| 433 | " NSInvocation.h |
| 434 | syn match objcClass /NSInvocation\s*\*/me=s+12,he=s+12 |
| 435 | " NSMethodSignature.h |
| 436 | syn match objcClass /NSMethodSignature\s*\*/me=s+17,he=s+17 |
| 437 | """"" |
| 438 | " NSScanner.h |
| 439 | syn match objcClass /NSScanner\s*\*/me=s+9,he=s+9 |
| 440 | " NSTimer.h |
| 441 | syn match objcClass /NSTimer\s*\*/me=s+7,he=s+7 |
| 442 | " NSAutoreleasePool.h |
| 443 | syn match objcClass /NSAutoreleasePool\s*\*/me=s+17,he=s+17 |
| 444 | " NSRunLoop.h |
| 445 | syn match objcClass /NSRunLoop\s*\*/me=s+9,he=s+9 |
| 446 | syn keyword objcConstVar NSDefaultRunLoopMode NSRunLoopCommonModes |
| 447 | " NSNull.h |
| 448 | syn match objcClass /NSNull\s*\*/me=s+6,he=s+6 |
| 449 | " NSProxy.h |
| 450 | syn match objcClass /NSProxy\s*\*/me=s+7,he=s+7 |
| 451 | " NSObject.h |
| 452 | syn match objcClass /NSObject\s*\*/me=s+8,he=s+8 |
| 453 | |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 454 | |
| 455 | " NSCache.h |
| 456 | syn match objcClass /NSCache\s*\*/me=s+7,he=s+7 |
| 457 | syn match objcClass /NSCache<.*>\s*\*/me=s+7,he=s+7 contains=objcTypeInfoParams |
| 458 | " NSHashTable.h |
| 459 | syn match objcClass /NSHashTable\s*\*/me=s+11,he=s+11 |
| 460 | syn match objcClass /NSHashTable<.*>\s*\*/me=s+11,he=s+11 contains=objcTypeInfoParams |
| 461 | syn keyword objcConstVar NSHashTableStrongMemory NSHashTableZeroingWeakMemory NSHashTableCopyIn NSHashTableObjectPointerPersonality NSHashTableWeakMemory |
| 462 | syn keyword objcType NSHashTableOptions NSHashEnumerator NSHashTableCallBacks |
| 463 | syn keyword objcConstVar NSIntegerHashCallBacks NSNonOwnedPointerHashCallBacks NSNonRetainedObjectHashCallBacks NSObjectHashCallBacks NSOwnedObjectIdentityHashCallBacks NSOwnedPointerHashCallBacks NSPointerToStructHashCallBacks NSOwnedObjectIdentityHashCallBacks NSOwnedObjectIdentityHashCallBacks NSIntHashCallBacks |
| 464 | " NSMapTable.h |
| 465 | syn match objcClass /NSMapTable\s*\*/me=s+10,he=s+10 |
| 466 | syn match objcClass /NSMapTable<.*>\s*\*/me=s+10,he=s+10 contains=objcTypeInfoParams |
| 467 | syn keyword objcConstVar NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks NSPointerToStructHashCallBacks |
| 468 | syn keyword objcConstVar NSMapTableStrongMemory NSMapTableZeroingWeakMemory NSMapTableCopyIn NSMapTableObjectPointerPersonality NSMapTableWeakMemory |
| 469 | syn keyword objcType NSMapTableOptions NSMapEnumerator NSMapTableKeyCallBacks NSMapTableValueCallBacks |
| 470 | syn keyword objcMacro NSNotAnIntMapKey NSNotAnIntegerMapKey NSNotAPointerMapKey |
| 471 | syn keyword objcConstVar NSIntegerMapKeyCallBacks NSNonOwnedPointerMapKeyCallBacks NSNonOwnedPointerOrNullMapKeyCallBacks NSNonRetainedObjectMapKeyCallBacks NSObjectMapKeyCallBacks NSOwnedPointerMapKeyCallBacks NSIntMapKeyCallBacks NSIntegerMapValueCallBacks NSNonOwnedPointerMapValueCallBacks NSObjectMapValueCallBacks NSNonRetainedObjectMapValueCallBacks NSOwnedPointerMapValueCallBacks NSIntMapValueCallBacks |
| 472 | |
| 473 | " NSPointerFunctions.h |
| 474 | syn match objcClass /NSPointerFunctions\s*\*/me=s+18,he=s+18 |
| 475 | syn keyword objcEnum NSPointerFunctionsOptions |
| 476 | syn keyword objcEnumValue NSPointerFunctionsStrongMemory NSPointerFunctionsZeroingWeakMemory NSPointerFunctionsOpaqueMemory NSPointerFunctionsMallocMemory NSPointerFunctionsMachVirtualMemory NSPointerFunctionsWeakMemory NSPointerFunctionsObjectPersonality NSPointerFunctionsOpaquePersonality NSPointerFunctionsObjectPointerPersonality NSPointerFunctionsCStringPersonality NSPointerFunctionsStructPersonality NSPointerFunctionsIntegerPersonality NSPointerFunctionsCopyIn |
| 477 | |
| 478 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 479 | """ Default Highlighting |
| 480 | hi def link objcPreProcMacro cConstant |
| 481 | hi def link objcPrincipalType cType |
| 482 | hi def link objcUsefulTerm cConstant |
| 483 | hi def link objcImport cInclude |
| 484 | hi def link objcImported cString |
| 485 | hi def link objcObjDef cOperator |
| 486 | hi def link objcProtocol cOperator |
| 487 | hi def link objcProperty cOperator |
| 488 | hi def link objcIvarScope cOperator |
| 489 | hi def link objcInternalRep cOperator |
| 490 | hi def link objcException cOperator |
| 491 | hi def link objcThread cOperator |
| 492 | hi def link objcPool cOperator |
Bram Moolenaar | 52b91d8 | 2013-06-15 21:39:51 +0200 | [diff] [blame] | 493 | hi def link objcModuleImport cOperator |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 494 | hi def link objcSpecial cSpecial |
| 495 | hi def link objcString cString |
| 496 | hi def link objcHiddenArgument cStatement |
| 497 | hi def link objcBlocksQualifier cStorageClass |
| 498 | hi def link objcObjectLifetimeQualifier cStorageClass |
| 499 | hi def link objcTollFreeBridgeQualifier cStorageClass |
| 500 | hi def link objcRemoteMessagingQualifier cStorageClass |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 501 | hi def link objcStorageClass cStorageClass |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 502 | hi def link objcFastEnumKeyword cStatement |
| 503 | hi def link objcLiteralSyntaxNumber cNumber |
| 504 | hi def link objcLiteralSyntaxChar cCharacter |
| 505 | hi def link objcLiteralSyntaxSpecialChar cCharacter |
| 506 | hi def link objcLiteralSyntaxOp cOperator |
| 507 | hi def link objcDeclPropAccessorName cConstant |
| 508 | hi def link objcDeclPropAccessorType cConstant |
| 509 | hi def link objcDeclPropAssignSemantics cConstant |
| 510 | hi def link objcDeclPropAtomicity cConstant |
| 511 | hi def link objcDeclPropARC cConstant |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 512 | hi def link objcDeclPropNullable cConstant |
| 513 | hi def link objcDeclPropNonnull cConstant |
| 514 | hi def link objcDeclPropNullUnspecified cConstant |
| 515 | hi def link objcDeclProcNullResettable cConstant |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 516 | hi def link objcInstanceMethod Function |
| 517 | hi def link objcClassMethod Function |
| 518 | hi def link objcType cType |
| 519 | hi def link objcClass cType |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 520 | hi def link objcTypeSpecifier cType |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 521 | hi def link objcMacro cConstant |
| 522 | hi def link objcEnum cType |
| 523 | hi def link objcEnumValue cConstant |
| 524 | hi def link objcExceptionValue cConstant |
| 525 | hi def link objcNotificationValue cConstant |
| 526 | hi def link objcConstVar cConstant |
Bram Moolenaar | 256972a | 2015-12-29 19:10:25 +0100 | [diff] [blame] | 527 | hi def link objcTypeInfoParams Identifier |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 528 | |
| 529 | """ Final step |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 530 | let b:current_syntax = "objc" |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 531 | let &cpo = s:cpo_save |
| 532 | unlet s:cpo_save |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 533 | |
Bram Moolenaar | ec7944a | 2013-06-12 21:29:15 +0200 | [diff] [blame] | 534 | " vim: ts=8 sw=2 sts=2 |