From 562840a2a16b4532f6d216c137506a7432c2e0e3 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Apr 2023 14:40:42 +0800 Subject: [PATCH] vim-patch:8.2.1125: Vim9: double quote can be a string or a comment Problem: Vim9: double quote can be a string or a comment. Solution: Only support comments starting with # to avoid confusion. https://github.com/vim/vim/commit/962d7213194647e90f9bdc608f693d39dd07cbd5 Co-authored-by: Bram Moolenaar --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 907e380b85..ec3c2b5e85 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4679,8 +4679,8 @@ static int get_literal_key(char **arg, typval_T *tv) /// Allocate a variable for a Dictionary and fill it from "*arg". /// +/// @param arg "*arg" points to the "{". /// @param literal true for #{key: val} -/// @param flags can have EVAL_EVALUATE and other EVAL_ flags. /// /// @return OK or FAIL. Returns NOTDONE for {expr}. static int eval_dict(char **arg, typval_T *rettv, evalarg_T *const evalarg, bool literal)