When I reply to a mail which contains a patch I would like to apply syntax highlighting after skipping the "> " quote. Specifically, given a quoted patch like this:
> ---
> fs/kernfs/dir.c | 195 ++++++++++++++++++++++++++++++++++++++++++------
> include/linux/kernfs.h | 3 +
> 2 files changed, 177 insertions(+), 21 deletions(-)
>
> diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c
> index 91e0045..dba0d42 100644
> --- a/fs/kernfs/dir.c
> +++ b/fs/kernfs/dir.c
> @@ -44,28 +44,159 @@ static int kernfs_name_locked(struct kernfs_node *kn, char *buf, size_t buflen)
> return strlcpy(buf, kn->parent ? kn->name : "/", buflen);
> }
>
> -static char * __must_check kernfs_path_locked(struct kernfs_node *kn, char *buf,
> - size_t buflen)
> +/**
> + * kernfs_node_depth - compute depth of the kernfs node from root.
> + * The root node itself is considered to be at depth 0.
> + */
> +static size_t kernfs_node_depth(struct kernfs_node *kn)
> {
> - char *p = buf + buflen;
> + size_t depth = 0;
> +
> + BUG_ON(!kn);
> + while (kn->parent) {
> + depth++;
> + kn = kn->parent;
> + }
> + return depth;
> +}
> +
I want a way to tell neovim to ignore "> " at the beginning of the lines and treat the rest as a patch.