configs  Check-in [3b9986b114]

Overview
Comment:vim/syntax/objc.vim: Update to ObjFW changes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3b9986b114000500f96a44381aff096e15275834ec062f0110a6f8655d3d4786
User & Date: js 2022-10-22 20:15:29
Context
2022-10-22
20:17
zshrc: Several changes check-in: 37161a8741 user: js tags: trunk
20:15
vim/syntax/objc.vim: Update to ObjFW changes check-in: 3b9986b114 user: js tags: trunk
2022-08-15
23:40
zshrc: Use sed -e instead of sed | sed check-in: 00abb3e9d6 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to vim/syntax/objc.vim.

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

" 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







|







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 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
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 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







|
|
|







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 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