lkml.org 
[lkml]   [2020]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectvim: linux-kernel: Add "fallthrough" as a keyword
From
Date
Add fallthrough as a keyword for source code highlighting as
fallthrough was added as a pseudo-keyword macro to replace the
various forms of switch/case /* fallthrough */ comments.

Signed-off-by: Joe Perches <joe@perches.com>
---
plugin/linuxsty.vim | 1 +
1 file changed, 1 insertion(+)

diff --git a/plugin/linuxsty.vim b/plugin/linuxsty.vim
index 18b28..44824 100644
--- a/plugin/linuxsty.vim
+++ b/plugin/linuxsty.vim
@@ -69,6 +69,7 @@ function s:LinuxFormatting()
endfunction

function s:LinuxKeywords()
+ syn keyword cStatement fallthrough
syn keyword cOperator likely unlikely
syn keyword cType u8 u16 u32 u64 s8 s16 s32 s64
syn keyword cType __u8 __u16 __u32 __u64 __s8 __s16 __s32 __s64
\
 
 \ /
  Last update: 2020-03-15 03:20    [W:0.034 / U:3.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site