linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* vim: linux-kernel: Add "fallthrough" as a keyword
@ 2020-03-14 19:05 Joe Perches
  0 siblings, 0 replies; 3+ messages in thread
From: Joe Perches @ 2020-03-14 19:05 UTC (permalink / raw)
  To: Vivien Didelot; +Cc: LKML

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vim: linux-kernel: Add "fallthrough" as a keyword
  2020-03-14 19:08 Joe Perches
@ 2020-06-09 22:18 ` Vivien Didelot
  0 siblings, 0 replies; 3+ messages in thread
From: Vivien Didelot @ 2020-06-09 22:18 UTC (permalink / raw)
  To: Joe Perches; +Cc: LKML

Hi Joe,

On Sat, 14 Mar 2020 12:08:40 -0700, Joe Perches <joe@perches.com> wrote:
> 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
> 

I've applied the patch, sorry for the delay.

Thanks,

	Vivien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* vim: linux-kernel: Add "fallthrough" as a keyword
@ 2020-03-14 19:08 Joe Perches
  2020-06-09 22:18 ` Vivien Didelot
  0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2020-03-14 19:08 UTC (permalink / raw)
  To: Vivien Didelot; +Cc: LKML

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-09 22:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 19:05 vim: linux-kernel: Add "fallthrough" as a keyword Joe Perches
2020-03-14 19:08 Joe Perches
2020-06-09 22:18 ` Vivien Didelot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).