37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
-
+
|
syn keyword objcTypeModifier OF_RETURNS_INNER_POINTER OF_NULLABLE_PROPERTY
syn keyword objcTypeModifier OF_NULL_RESETTABLE_PROPERTY OF_UNAVAILABLE
syn keyword objcTypeModifier OF_DESIGNATED_INITIALIZER OF_METHOD_FAMILY
syn keyword objcTypeModifier OF_REQUIRES_SUPER OF_ALIGNOF OF_ALIGNAS
syn keyword objcTypeModifier OF_SENTINEL OF_SUBCLASSING_RESTRICTED
syn keyword objcTypeModifier OF_DIRECT OF_DIRECT_MEMBERS
syn keyword objcTypeModifier _Nonnull _Nullable _Null_unspecified __kindof
syn keyword objcConstant nil Nil OF_NOT_FOUND
syn keyword objcConstant nil Nil OFNotFound
" Match the ObjC #import directive (like C's #include)
syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
syn match objcImported display contained "<[-_0-9a-zA-Z.\/]*>"
syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported
" Match the important ObjC directives
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
-
-
-
+
+
+
|
syn match objcDirective '@optional\|@required\|@autoreleasepool' display
syn keyword objcType IBOutlet IBAction Method __block instancetype
syn keyword objcType __unsafe_unretained __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak
syn keyword objcType OFUnichar OFChar16 OFChar32 OFComparisonResult
syn keyword objcType OFComparator OFByteOrder OFRange OFPoint OFRect OFSize
syn keyword objcType OFPlainMutex OFPlainRecursiveMutex
syn keyword objcType OFStringEncoding OFTimeInterval
syn keyword objcType OFResolverResult OFFileOffset OFPlainCondition
syn keyword objcType OFSocketHandle OFSpinlock OFTLSKey OFPlainThread
syn keyword objcType OFOptionsParserOption OFHTTPRequestMethod
syn keyword objcType OFResolverResult OFStreamOffset OFSeekWhence
syn keyword objcType OFPlainCondition OFSocketHandle OFSpinlock OFTLSKey
syn keyword objcType OFPlainThread OFOptionsParserOption OFHTTPRequestMethod
syn keyword objcType OFHTTPRequestProtocolVersion OFSocketAddress
syn keyword objcType OFFileAttributeKey OFFileType OFFileAttributes
syn keyword objcType OFMutableFileAttributes OFNotificationName
syn keyword objcConstant YES NO TRUE FALSE
syn region objcImp start='@implementation' end='@end' transparent
syn region objcHeader start='@interface' end='@end' transparent
|