From 8b5cc1230a473ef422306855808da1f06669fba5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 9 Feb 2016 15:24:28 +0100 Subject: Syntax: skip over ] The ported patch for 7.4.825 removed code that is needed to walk over "]" by accident. 0: https://github.com/neovim/neovim/commit/52692d3cd3e682a4116d3cec1fcf05880f0c77a1 1: https://github.com/vim/vim/commit/1560d07045d416d0abf9731c43c28925f61515b6 Fixes #4207. --- src/nvim/syntax.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/syntax.c') diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 494683d254..821411ec7b 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -4196,6 +4196,8 @@ static void syn_cmd_keyword(exarg_T *eap, int syncing) kw, &p[2]); goto error; } + kw = p + 1; + break; // skip over the "]" } if (has_mbyte) { int l = (*mb_ptr2len)(p + 1); -- cgit