aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);