Mercurial > vim
comparison runtime/syntax/c.vim @ 3237:91e53bcb7946
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 30 Dec 2011 13:11:27 +0100 |
parents | 3502a7f991fc |
children | ba708ee8d69d |
comparison
equal
deleted
inserted
replaced
3236:12a5ea0526b1 | 3237:91e53bcb7946 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: C | 2 " Language: C |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2011 Sep 07 | 4 " Last Change: 2011 Dec 30 |
5 | 5 |
6 " Quit when a (custom) syntax file was already loaded | 6 " Quit when a (custom) syntax file was already loaded |
7 if exists("b:current_syntax") | 7 if exists("b:current_syntax") |
8 finish | 8 finish |
9 endif | 9 endif |
10 | |
11 let s:cpo_save = &cpo | |
12 set cpo&vim | |
10 | 13 |
11 " A bunch of useful C keywords | 14 " A bunch of useful C keywords |
12 syn keyword cStatement goto break return continue asm | 15 syn keyword cStatement goto break return continue asm |
13 syn keyword cLabel case default | 16 syn keyword cLabel case default |
14 syn keyword cConditional if else switch | 17 syn keyword cConditional if else switch |
388 hi def link cCppOut2 cCppOut " Old syntax group for #if of #if 0 | 391 hi def link cCppOut2 cCppOut " Old syntax group for #if of #if 0 |
389 hi def link cCppOut Comment | 392 hi def link cCppOut Comment |
390 | 393 |
391 let b:current_syntax = "c" | 394 let b:current_syntax = "c" |
392 | 395 |
396 let &cpo = s:cpo_save | |
397 unlet s:cpo_save | |
393 " vim: ts=8 | 398 " vim: ts=8 |