Mercurial > vim
comparison runtime/syntax/objc.vim @ 3496:d1e4abe8342c
Fixed compatible mode in most runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 30 Apr 2012 15:56:52 +0200 |
parents | e63691e7c504 |
children | 8b86b69546a9 |
comparison
equal
deleted
inserted
replaced
3495:0973ed3043c6 | 3496:d1e4abe8342c |
---|---|
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: 2007 Feb 21 | 6 " Last Change: 2012 Apr 30 |
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 |
12 elseif exists("b:current_syntax") | 12 elseif exists("b:current_syntax") |
13 finish | 13 finish |
14 endif | 14 endif |
15 let s:keepcpo= &cpo | |
16 set cpo&vim | |
15 | 17 |
16 if &filetype != 'objcpp' | 18 if &filetype != 'objcpp' |
17 " Read the C syntax to start with | 19 " Read the C syntax to start with |
18 if version < 600 | 20 if version < 600 |
19 source <sfile>:p:h/c.vim | 21 source <sfile>:p:h/c.vim |
105 delcommand HiLink | 107 delcommand HiLink |
106 endif | 108 endif |
107 | 109 |
108 let b:current_syntax = "objc" | 110 let b:current_syntax = "objc" |
109 | 111 |
112 let &cpo = s:keepcpo | |
113 unlet s:keepcpo | |
114 | |
110 " vim: ts=8 | 115 " vim: ts=8 |