Mercurial > vim
diff src/list.c @ 21148:667192c5938b v8.2.1125
patch 8.2.1125: Vim9: double quote can be a string or a comment
Commit: https://github.com/vim/vim/commit/962d7213194647e90f9bdc608f693d39dd07cbd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 4 14:15:00 2020 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Jul 2020 14:30:04 +0200 |
parents | 4d844a65183d |
children | 8d1d11afd8c8 |
line wrap: on
line diff
--- a/src/list.c +++ b/src/list.c @@ -1177,7 +1177,7 @@ eval_list(char_u **arg, typval_T *rettv, return FAIL; } - *arg = skipwhite_and_linebreak_keep_string(*arg + 1, evalarg); + *arg = skipwhite_and_linebreak(*arg + 1, evalarg); while (**arg != ']' && **arg != NUL) { if (eval1(arg, &tv, evalarg) == FAIL) // recursive! @@ -1209,7 +1209,7 @@ eval_list(char_u **arg, typval_T *rettv, // The "]" can be on the next line. But a double quoted string may // follow, not a comment. - *arg = skipwhite_and_linebreak_keep_string(*arg, evalarg); + *arg = skipwhite_and_linebreak(*arg, evalarg); if (**arg == ']') break;