mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2444: Vim9: compile error with combination of operator and list
Problem: Vim9: compile error with combination of operator and list. Solution: Generate constants before parsing a list or dict. (closes #7757)
This commit is contained in:
@@ -4121,13 +4121,17 @@ compile_expr7(
|
||||
/*
|
||||
* List: [expr, expr]
|
||||
*/
|
||||
case '[': ret = compile_list(arg, cctx, ppconst);
|
||||
case '[': if (generate_ppconst(cctx, ppconst) == FAIL)
|
||||
return FAIL;
|
||||
ret = compile_list(arg, cctx, ppconst);
|
||||
break;
|
||||
|
||||
/*
|
||||
* Dictionary: {'key': val, 'key': val}
|
||||
*/
|
||||
case '{': ret = compile_dict(arg, cctx, ppconst);
|
||||
case '{': if (generate_ppconst(cctx, ppconst) == FAIL)
|
||||
return FAIL;
|
||||
ret = compile_dict(arg, cctx, ppconst);
|
||||
break;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user