diff src/macros.h @ 20013:bf377a9ffccb v8.2.0562

patch 8.2.0562: Vim9: cannot split an expression into multiple lines Commit: https://github.com/vim/vim/commit/9c7e6dd653b62f54324f3c00d69cb348d8611a9f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 20:55:20 2020 +0200 patch 8.2.0562: Vim9: cannot split an expression into multiple lines Problem: Vim9: cannot split an expression into multiple lines. Solution: Continue in next line after an operator.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 21:00:06 +0200
parents 804322d6c6ba
children 4c317d8c1051
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -37,10 +37,11 @@
 #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b))
 
 /*
- * VIM_ISWHITE() is used for "^" and the like. It differs from isspace()
- * because it doesn't include <CR> and <LF> and the like.
+ * VIM_ISWHITE() differs from isspace() because it doesn't include <CR> and
+ * <LF> and the like.
  */
-#define VIM_ISWHITE(x)	((x) == ' ' || (x) == '\t')
+#define VIM_ISWHITE(x)		((x) == ' ' || (x) == '\t')
+#define IS_WHITE_OR_NUL(x)	((x) == ' ' || (x) == '\t' || (x) == NUL)
 
 /*
  * LINEEMPTY() - return TRUE if the line is empty