1
0
forked from aniani/vim

patch 8.2.1306: checking for first character of dict key is inconsistent

Problem:    Checking for first character of dict key is inconsistent.
Solution:   Add eval_isdictc(). (closes #6546)
This commit is contained in:
Bram Moolenaar
2020-07-27 21:43:28 +02:00
parent 622b3568fa
commit b13ab99908
7 changed files with 40 additions and 10 deletions

View File

@@ -3758,7 +3758,7 @@ compile_subscript(
if (next != NULL &&
((next[0] == '-' && next[1] == '>'
&& (next[2] == '{' || ASCII_ISALPHA(next[2])))
|| (next[0] == '.' && ASCII_ISALPHA(next[1]))))
|| (next[0] == '.' && eval_isdictc(next[1]))))
{
next = next_line_from_context(cctx, TRUE);
if (next == NULL)
@@ -3922,7 +3922,7 @@ compile_subscript(
return FAIL;
// dictionary member: dict.name
p = *arg;
if (eval_isnamec1(*p))
if (eval_isdictc(*p))
while (eval_isnamec(*p))
MB_PTR_ADV(p);
if (p == *arg)