Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/objcpp.vim @ 34:e170173ecb68 current-release
before ack base protocol.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 26 Nov 2008 15:02:10 +0900 |
parents | 76efa0be13f1 |
children |
comparison
equal
deleted
inserted
replaced
33:7d0d8b831f5a | 34:e170173ecb68 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: ObjC++ | 2 " Language: Objective C++ |
3 " Maintainer: Anthony Hodsdon <ahodsdon@fastmail.fm> | 3 " Maintainer: Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com> |
4 " Last change: 2003 Apr 25 | 4 " Ex-Maintainer: Anthony Hodsdon <ahodsdon@fastmail.fm> |
5 " Last Change: 2007 Oct 29 | |
5 | 6 |
6 " For version 5.x: Clear all syntax items | 7 " For version 5.x: Clear all syntax items |
7 " For version 6.x: Quit when a syntax file was already loaded | 8 " For version 6.x: Quit when a syntax file was already loaded |
8 if version < 600 | 9 if version < 600 |
9 syntax clear | 10 syntax clear |
12 endif | 13 endif |
13 | 14 |
14 " Read in C++ and ObjC syntax files | 15 " Read in C++ and ObjC syntax files |
15 if version < 600 | 16 if version < 600 |
16 so <sfile>:p:h/cpp.vim | 17 so <sfile>:p:h/cpp.vim |
17 so <sflie>:p:h/objc.vim | 18 so <sfile>:p:h/objc.vim |
18 else | 19 else |
19 runtime! syntax/cpp.vim | 20 runtime! syntax/cpp.vim |
20 unlet b:current_syntax | 21 unlet b:current_syntax |
21 runtime! syntax/objc.vim | 22 runtime! syntax/objc.vim |
22 endif | 23 endif |
23 | 24 |
24 " Note that we already have a region for method calls ( [objc_class method] ) | |
25 " by way of cBracket. | |
26 syn region objCFunc start="^\s*[-+]" end="$" contains=ALLBUT,cErrInParen,cErrInBracket | |
27 | |
28 syn keyword objCppNonStructure class template namespace transparent contained | 25 syn keyword objCppNonStructure class template namespace transparent contained |
29 syn keyword objCppNonStatement new delete friend using transparent contained | 26 syn keyword objCppNonStatement new delete friend using transparent contained |
30 | 27 |
31 let b:current_syntax = "objcpp" | 28 let b:current_syntax = "objcpp" |