summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-12 20:55:20 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-12 20:55:20 +0200
commit9c7e6dd653b62f54324f3c00d69cb348d8611a9f (patch)
tree948d4c323c783bbae8cad54d04a8a06b8556fa6b /src/macros.h
parente6085c53506e38d07334faa1002ee90b1933b128 (diff)
downloadvim-git-9c7e6dd653b62f54324f3c00d69cb348d8611a9f.tar.gz
patch 8.2.0562: Vim9: cannot split an expression into multiple linesv8.2.0562
Problem: Vim9: cannot split an expression into multiple lines. Solution: Continue in next line after an operator.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/macros.h b/src/macros.h
index 803b89115..9a3d4e13c 100644
--- 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