Mercurial > vim
diff runtime/syntax/c.vim @ 3256:ba708ee8d69d
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 10 Jan 2012 14:55:01 +0100 |
parents | 91e53bcb7946 |
children | af1e8a1714c2 |
line wrap: on
line diff
--- a/runtime/syntax/c.vim +++ b/runtime/syntax/c.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: C " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2011 Dec 30 +" Last Change: 2012 Jan 04 " Quit when a (custom) syntax file was already loaded if exists("b:current_syntax") @@ -181,7 +181,7 @@ if !exists("c_no_ansi") || exists("c_ans syn keyword cType mbstate_t wctrans_t wint_t wctype_t endif if !exists("c_no_c99") " ISO C99 - syn keyword cType bool complex + syn keyword cType _Bool bool _Complex complex _Imaginary imaginary syn keyword cType int8_t int16_t int32_t int64_t syn keyword cType uint8_t uint16_t uint32_t uint64_t syn keyword cType int_least8_t int_least16_t int_least32_t int_least64_t @@ -203,6 +203,15 @@ endif if !exists("c_no_c99") syn keyword cStorageClass inline restrict endif +if !exists("c_no_c11") + syn keyword cStorageClass _Alignas alignas + syn keyword cOperator _Alignof alignof + syn keyword cStorageClass _Atomic + syn keyword cOperator _Generic + syn keyword cStorageClass _Noreturn noreturn + syn keyword cOperator _Static_assert static_assert + syn keyword cStorageClass _Thread_local thread_local +endif if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu") if exists("c_gnu")