lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 14 Mar 2020 12:08:40 -0700
From:   Joe Perches <joe@...ches.com>
To:     Vivien Didelot <vivien.didelot@...il.com>
Cc:     LKML <linux-kernel@...r.kernel.org>
Subject: vim: linux-kernel: Add "fallthrough" as a keyword

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@...ches.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ