changeset 34483:7bf8f78a5a4b

runtime(c): Recognize "__inline" (#14145) Commit: https://github.com/vim/vim/commit/63c39e4ef749883e96a83b9f647ac91516c0d1be Author: Wu Yongwei <wuyongwei@gmail.com> Date: Wed Mar 6 03:27:27 2024 +0800 runtime(c): Recognize "__inline" (https://github.com/vim/vim/issues/14145) `__inline` is recognized by GCC, and may even be preferred, as MSVC does not recognize `__inline__`. Signed-off-by: Wu Yongwei <wuyongwei@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Mar 2024 20:30:09 +0100
parents 7375d8465b7e
children 2425b78ab0d7
files runtime/syntax/c.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/c.vim
+++ b/runtime/syntax/c.vim
@@ -252,7 +252,7 @@ if exists("c_gnu")
   syn keyword	cOperator	typeof __typeof__
   syn keyword	cOperator	__real__ __imag__
   syn keyword	cStorageClass	__attribute__ __const__ __extension__
-  syn keyword	cStorageClass	inline __inline__
+  syn keyword	cStorageClass	inline __inline __inline__
   syn keyword	cStorageClass	__restrict__ __volatile__ __noreturn__
 endif
 syn keyword	cType		int long short char void