aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2016-02-09 15:24:28 +0100
committerMarco Hinz <mh.codebro@gmail.com>2016-02-09 15:28:52 +0100
commit8b5cc1230a473ef422306855808da1f06669fba5 (patch)
tree6d76f5dbd124575ce4324e7f62ea27ef9a11ccb8 /src/nvim/syntax.c
parent25a70469f4b1bae0cb7b152bccae4dd3ea346277 (diff)
downloadrneovim-8b5cc1230a473ef422306855808da1f06669fba5.tar.gz
rneovim-8b5cc1230a473ef422306855808da1f06669fba5.tar.bz2
rneovim-8b5cc1230a473ef422306855808da1f06669fba5.zip
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.
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 2 insertions, 0 deletions
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);