0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-07-04 14:15:00 +02:00
parent 1c991144c5
commit 962d721319
6 changed files with 15 additions and 26 deletions

View File

@@ -342,7 +342,7 @@ handle_import(
goto erret;
}
arg = skipwhite_and_linebreak_keep_string(arg + 4, evalarg);
arg = skipwhite_and_linebreak(arg + 4, evalarg);
tv.v_type = VAR_UNKNOWN;
// TODO: should we accept any expression?
if (*arg == '\'')