diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 14:40:42 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 16:10:09 +0800 |
commit | 562840a2a16b4532f6d216c137506a7432c2e0e3 (patch) | |
tree | 3be6aa6209c16625128298a0dff95a452715c789 | |
parent | cf37630d1b1443427c13e0a35e0a12b39e1415db (diff) | |
download | rneovim-562840a2a16b4532f6d216c137506a7432c2e0e3.tar.gz rneovim-562840a2a16b4532f6d216c137506a7432c2e0e3.tar.bz2 rneovim-562840a2a16b4532f6d216c137506a7432c2e0e3.zip |
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 <Bram@vim.org>
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |