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');
 }