vim/syntax/objc.vim: Add more keywords
This commit is contained in:
parent
9d85fae100
commit
a09e925420
1 changed files with 11 additions and 7 deletions
|
@ -37,8 +37,10 @@ syn keyword objcTypeModifier OF_KINDOF OF_CONST_FUNC OF_NO_RETURN
|
|||
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
|
||||
syn keyword objcTypeModifier _Nonnull _Nullable _Null_unspecified __kindof
|
||||
syn keyword objcConstant nil Nil
|
||||
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=+"+
|
||||
|
@ -126,12 +128,14 @@ 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 of_unichar_t of_char16_t of_char32_t of_comparison_result_t
|
||||
syn keyword objcType of_byte_order_t of_range_t of_point_t of_dimension_t
|
||||
syn keyword objcType of_mutex_t of_rmutex_t of_rectangle_t of_string_encoding_t
|
||||
syn keyword objcType of_time_interval_t of_resolver_result_t
|
||||
syn keyword objcType of_udp_socket_address_t of_offset_t of_stat_t of_socket_t
|
||||
syn keyword objcType of_spinlock_t of_options_parser_option_t
|
||||
syn keyword objcType of_http_request_method_t of_http_request_protocol_version_t
|
||||
syn keyword objcType of_comparator_t of_byte_order_t of_range_t of_point_t
|
||||
syn keyword objcType of_dimension_t of_mutex_t of_rmutex_t of_rectangle_t
|
||||
syn keyword objcType of_string_encoding_t of_time_interval_t
|
||||
syn keyword objcType of_resolver_result_t of_udp_socket_address_t of_offset_t
|
||||
syn keyword objcType of_stat_t of_socket_t of_spinlock_t
|
||||
syn keyword objcType of_options_parser_option_t of_http_request_method_t
|
||||
syn keyword objcType of_http_request_protocol_version_t
|
||||
syn keyword objcType of_file_attribute_key_t of_file_type_t of_file_attributes_t
|
||||
syn keyword objcConstant YES NO TRUE FALSE
|
||||
|
||||
syn region objcImp start='@implementation' end='@end' transparent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue