Mercurial > vim
comparison runtime/syntax/objc.vim @ 1121:e63691e7c504
updated for version 7.1a
author | vimboss |
---|---|
date | Sat, 05 May 2007 17:54:07 +0000 |
parents | 1babf94e0b24 |
children | d1e4abe8342c |
comparison
equal
deleted
inserted
replaced
1120:e6db096b07a1 | 1121:e63691e7c504 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Objective C | 2 " Language: Objective C |
3 " Maintainer: Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com> | 3 " Maintainer: Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com> |
4 " Ex-maintainer: Anthony Hodsdon <ahodsdon@fastmail.fm> | 4 " Ex-maintainer: Anthony Hodsdon <ahodsdon@fastmail.fm> |
5 " First Author: Valentino Kyriakides <1kyriaki@informatik.uni-hamburg.de> | 5 " First Author: Valentino Kyriakides <1kyriaki@informatik.uni-hamburg.de> |
6 " Last Change: 2006 Mar 4 | 6 " Last Change: 2007 Feb 21 |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " For version 5.x: Clear all syntax items |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 " For version 6.x: Quit when a syntax file was already loaded |
10 if version < 600 | 10 if version < 600 |
11 syntax clear | 11 syntax clear |
34 syn keyword objcTypeModifier bycopy in out inout oneway | 34 syn keyword objcTypeModifier bycopy in out inout oneway |
35 syn keyword objcConstant nil Nil | 35 syn keyword objcConstant nil Nil |
36 | 36 |
37 " Match the ObjC #import directive (like C's #include) | 37 " Match the ObjC #import directive (like C's #include) |
38 syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ | 38 syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ |
39 syn match objcImported display contained "<[_0-9a-zA-Z.\/]*>" | 39 syn match objcImported display contained "<[-_0-9a-zA-Z.\/]*>" |
40 syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported | 40 syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported |
41 | 41 |
42 " Match the important ObjC directives | 42 " Match the important ObjC directives |
43 syn match objcScopeDecl "@public\|@private\|@protected" | 43 syn match objcScopeDecl "@public\|@private\|@protected" |
44 syn match objcDirective "@interface\|@implementation" | 44 syn match objcDirective "@interface\|@implementation" |