Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
3255:3c04cfb72ad9 | 3256:ba708ee8d69d |
---|---|
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 Dec 30 | 4 " Last Change: 2012 Jan 04 |
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 |
179 syn keyword cType size_t ssize_t off_t wchar_t ptrdiff_t sig_atomic_t fpos_t | 179 syn keyword cType size_t ssize_t off_t wchar_t ptrdiff_t sig_atomic_t fpos_t |
180 syn keyword cType clock_t time_t va_list jmp_buf FILE DIR div_t ldiv_t | 180 syn keyword cType clock_t time_t va_list jmp_buf FILE DIR div_t ldiv_t |
181 syn keyword cType mbstate_t wctrans_t wint_t wctype_t | 181 syn keyword cType mbstate_t wctrans_t wint_t wctype_t |
182 endif | 182 endif |
183 if !exists("c_no_c99") " ISO C99 | 183 if !exists("c_no_c99") " ISO C99 |
184 syn keyword cType bool complex | 184 syn keyword cType _Bool bool _Complex complex _Imaginary imaginary |
185 syn keyword cType int8_t int16_t int32_t int64_t | 185 syn keyword cType int8_t int16_t int32_t int64_t |
186 syn keyword cType uint8_t uint16_t uint32_t uint64_t | 186 syn keyword cType uint8_t uint16_t uint32_t uint64_t |
187 syn keyword cType int_least8_t int_least16_t int_least32_t int_least64_t | 187 syn keyword cType int_least8_t int_least16_t int_least32_t int_least64_t |
188 syn keyword cType uint_least8_t uint_least16_t uint_least32_t uint_least64_t | 188 syn keyword cType uint_least8_t uint_least16_t uint_least32_t uint_least64_t |
189 syn keyword cType int_fast8_t int_fast16_t int_fast32_t int_fast64_t | 189 syn keyword cType int_fast8_t int_fast16_t int_fast32_t int_fast64_t |
200 if exists("c_gnu") | 200 if exists("c_gnu") |
201 syn keyword cStorageClass inline __attribute__ | 201 syn keyword cStorageClass inline __attribute__ |
202 endif | 202 endif |
203 if !exists("c_no_c99") | 203 if !exists("c_no_c99") |
204 syn keyword cStorageClass inline restrict | 204 syn keyword cStorageClass inline restrict |
205 endif | |
206 if !exists("c_no_c11") | |
207 syn keyword cStorageClass _Alignas alignas | |
208 syn keyword cOperator _Alignof alignof | |
209 syn keyword cStorageClass _Atomic | |
210 syn keyword cOperator _Generic | |
211 syn keyword cStorageClass _Noreturn noreturn | |
212 syn keyword cOperator _Static_assert static_assert | |
213 syn keyword cStorageClass _Thread_local thread_local | |
205 endif | 214 endif |
206 | 215 |
207 if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu") | 216 if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu") |
208 if exists("c_gnu") | 217 if exists("c_gnu") |
209 syn keyword cConstant __GNUC__ __FUNCTION__ __PRETTY_FUNCTION__ __func__ | 218 syn keyword cConstant __GNUC__ __FUNCTION__ __PRETTY_FUNCTION__ __func__ |