linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vivien Didelot <vivien.didelot@gmail.com>
To: Joe Perches <joe@perches.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: vim: linux-kernel: Add "fallthrough" as a keyword
Date: Tue, 9 Jun 2020 18:18:32 -0400	[thread overview]
Message-ID: <20200609181832.GB124143@t480s.localdomain> (raw)
In-Reply-To: <f0b213d90e0c2138bedcc4822063dde2650f787f.camel@perches.com>

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

  reply	other threads:[~2020-06-09 22:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-14 19:08 vim: linux-kernel: Add "fallthrough" as a keyword Joe Perches
2020-06-09 22:18 ` Vivien Didelot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-14 19:05 Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200609181832.GB124143@t480s.localdomain \
    --to=vivien.didelot@gmail.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).