Mercurial > vim
diff runtime/syntax/objc.vim @ 4159:8b86b69546a9
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 20 Feb 2013 21:26:00 +0100 |
parents | d1e4abe8342c |
children | a5352e73dc00 |
line wrap: on
line diff
--- a/runtime/syntax/objc.vim +++ b/runtime/syntax/objc.vim @@ -3,7 +3,10 @@ " Maintainer: Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com> " Ex-maintainer: Anthony Hodsdon <ahodsdon@fastmail.fm> " First Author: Valentino Kyriakides <1kyriaki@informatik.uni-hamburg.de> -" Last Change: 2012 Apr 30 +" Last Change: 2013 Feb 20 +" +" 2013 Feb 19 Revised based on a patch sent to the maintainer by +" Christos Kontas <xakon@yahoo.com> on 2012 Dec 12. " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -48,6 +51,11 @@ syn match objcDirective "@class\|@en syn match objcDirective "@encode\|@protocol\|@selector" syn match objcDirective "@try\|@catch\|@finally\|@throw\|@synchronized" + " New directives introduced with Objc-2.0 +syn match objcDirective "@property\|@synthesize\|@dynamic" +syn match objcDirective "@optional\|@required" +syn match objcDirective "@autoreleasepool" + " Match the ObjC method types " " NOTE: here I match only the indicators, this looks