From 3cbff5109cf47983b1b3e5f6b079c53f5abb0327 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 1 Dec 2015 22:53:07 +0000 Subject: [PATCH] syntax/objc.vim: Add more keywords / types --- vim/syntax/objc.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vim/syntax/objc.vim b/vim/syntax/objc.vim index fc012a3..4f33146 100644 --- a/vim/syntax/objc.vim +++ b/vim/syntax/objc.vim @@ -32,9 +32,9 @@ endif syn keyword objcStatement self super _cmd syn keyword objcType id Class SEL IMP BOOL nonnull nullable syn keyword objcTypeModifier bycopy in out inout oneway OF_GENERIC OF_INLINE -syn keyword objcTypeModifier OF_CONST_FUNC OF_NO_RETURN OF_KINDOF -syn keyword objcTypeModifier OF_RETURNS_INNER_POINTER OF_NONNULL -syn keyword objcTypeModifier OF_NULLABLE OF_NULLABLE_PROPERTY +syn keyword objcTypeModifier OF_CONST_FUNC OF_NO_RETURN +syn keyword objcTypeModifier OF_RETURNS_INNER_POINTER +syn keyword objcTypeModifier _Nonnull _Nullable _Null_unspecified __kindof syn keyword objcConstant nil Nil " Match the ObjC #import directive (like C's #include) @@ -126,7 +126,8 @@ syn keyword objcType of_byte_order_t of_range_t of_point_t of_dimension_t syn keyword objcType of_mutex_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 +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 objcConstant YES NO TRUE FALSE syn region objcImp start='@implementation' end='@end' transparent