commit | 2c330432cfb12181c61d698b5459bfd73d2610df | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 13 14:41:35 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 13 14:41:35 2020 +0200 |
tree | 86e70718a23762d23c42fd292a623efed66205b2 | |
parent | 1a2f4bf6c80d750615f19c34e5baddd21310c9c9 [diff] [blame] |
patch 8.2.0567: Vim9: cannot put comments halfway expressions Problem: Vim9: cannot put comments halfway expressions. Solution: Support # comments in many places.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 1cc231d..047e368 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -4764,6 +4764,9 @@ int ends_excmd(int c) { + if (c == '#') + // TODO: should check for preceding white space + return in_vim9script(); return (c == NUL || c == '|' || c == '"' || c == '\n'); }