Mercurial > vim
comparison runtime/syntax/objc.vim @ 236:4707450c2b33
updated for version 7.0066
author | vimboss |
---|---|
date | Fri, 15 Apr 2005 21:00:38 +0000 |
parents | 3fc0f57ecb91 |
children | 1babf94e0b24 |
comparison
equal
deleted
inserted
replaced
235:23d380e32c95 | 236:4707450c2b33 |
---|---|
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: 2004 May 20 | 6 " Last Change: 2005 Apr 13 |
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 |
28 " and uses *.h, *.m as file extensions! | 28 " and uses *.h, *.m as file extensions! |
29 | 29 |
30 | 30 |
31 " ObjC keywords, types, type qualifiers etc. | 31 " ObjC keywords, types, type qualifiers etc. |
32 syn keyword objcStatement self super _cmd | 32 syn keyword objcStatement self super _cmd |
33 syn keyword objcType id Class SEL IMP BOOL nil Nil | 33 syn keyword objcType id Class SEL IMP BOOL |
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 | 36 |
36 " Match the ObjC #import directive (like C's #include) | 37 " Match the ObjC #import directive (like C's #include) |
37 syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ | 38 syn region objcImported display contained start=+"+ skip=+\\\\\|\\"+ end=+"+ |
38 syn match objcImported display contained "<[_0-9a-zA-Z.\/]*>" | 39 syn match objcImported display contained "<[_0-9a-zA-Z.\/]*>" |
39 syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported | 40 syn match objcImport display "^\s*\(%:\|#\)\s*import\>\s*["<]" contains=objcImported |
96 HiLink objcDirective Statement | 97 HiLink objcDirective Statement |
97 HiLink objcKeyForMethodParam None | 98 HiLink objcKeyForMethodParam None |
98 HiLink objcString cString | 99 HiLink objcString cString |
99 HiLink objcSpecial Special | 100 HiLink objcSpecial Special |
100 HiLink objcProtocol None | 101 HiLink objcProtocol None |
102 HiLink objcConstant cConstant | |
101 | 103 |
102 delcommand HiLink | 104 delcommand HiLink |
103 endif | 105 endif |
104 | 106 |
105 let b:current_syntax = "objc" | 107 let b:current_syntax = "objc" |