]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(c): Recognize "__inline" (#14145)
authorWu Yongwei <wuyongwei@gmail.com>
Tue, 5 Mar 2024 19:27:27 +0000 (03:27 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2024 19:27:27 +0000 (20:27 +0100)
`__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>
runtime/syntax/c.vim

index a593bd26c2cfd46d8600d6cd17f80fae7ca31b8c..30db9438d0bc720feaa15c5068a659374110673f 100644 (file)
@@ -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