patch 8.2.3815: Vim9: cannot have a multi-line dict inside a block
Problem: Vim9: cannot have a multi-line dict inside a block.
Solution: Do not split the command at a line break, handle NL characters
as white space.
diff --git a/src/charset.c b/src/charset.c
index 0c17140..31b03eb 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1459,14 +1459,27 @@
}
/*
- * skipwhite: skip over ' ' and '\t'.
+ * Skip over ' ' and '\t'.
*/
char_u *
skipwhite(char_u *q)
{
char_u *p = q;
- while (VIM_ISWHITE(*p)) // skip to next non-white
+ while (VIM_ISWHITE(*p))
+ ++p;
+ return p;
+}
+
+/*
+ * skip over ' ', '\t' and '\n'.
+ */
+ char_u *
+skipwhite_and_nl(char_u *q)
+{
+ char_u *p = q;
+
+ while (VIM_ISWHITE(*p) || *p == NL)
++p;
return p;
}