diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-02 15:28:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-02 15:28:15 +0200 |
commit | 0f37e3561db95b0ef0b636588bbd30297e377384 (patch) | |
tree | 77106af00fa3c877b7611d90741f399d9118396e /src/scriptfile.c | |
parent | a2e468fcac7523ae6a0ab65db5196684801fa2d1 (diff) | |
download | vim-git-0f37e3561db95b0ef0b636588bbd30297e377384.tar.gz |
patch 8.2.2925: Vim9: line continuation comment uses legacy syntaxv8.2.2925
Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295)
Diffstat (limited to 'src/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index 203cad09f..15338be63 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1842,7 +1842,8 @@ getsourceline( ga_concat(&ga, p); } } - else if (!(p[0] == '"' && p[1] == '\\' && p[2] == ' ') + else if (!(p[0] == (in_vim9script() ? '#' : '"') + && p[1] == '\\' && p[2] == ' ') && !(do_vim9_all && (*p == NUL || vim9_comment_start(p)))) break; /* drop a # comment or "\ comment line */ |