mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:e064051: runtime(c): add new constexpr keyword to syntax file (C23)
closes: vim/vim#16471
e06405181a
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
parent
7d04ebd43c
commit
954d4969c9
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
" Last Change: 2025 Jan 15
|
" Last Change: 2025 Jan 18
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" Quit when a (custom) syntax file was already loaded
|
||||||
@ -318,6 +318,9 @@ syn keyword cStorageClass static register auto volatile extern const
|
|||||||
if !exists("c_no_c99") && !s:in_cpp_family
|
if !exists("c_no_c99") && !s:in_cpp_family
|
||||||
syn keyword cStorageClass inline restrict
|
syn keyword cStorageClass inline restrict
|
||||||
endif
|
endif
|
||||||
|
if (s:ft ==# "c" && !exists("c_no_c23")) || (s:in_cpp_family && !exists("cpp_no_cpp11"))
|
||||||
|
syn keyword cStorageClass constexpr
|
||||||
|
endif
|
||||||
if !exists("c_no_c11")
|
if !exists("c_no_c11")
|
||||||
syn keyword cStorageClass _Alignas alignas
|
syn keyword cStorageClass _Alignas alignas
|
||||||
syn keyword cOperator _Alignof alignof
|
syn keyword cOperator _Alignof alignof
|
||||||
|
Loading…
Reference in New Issue
Block a user