diff options
author | ZyX <kp-pav@yandex.ru> | 2017-11-12 03:52:26 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-11-12 03:52:26 +0300 |
commit | 45445e2e03f1cbfa25dde76ccf3e24d0d297cabe (patch) | |
tree | 1646a752e35b6c077ec21c9bc0425ee5865116f8 /src/nvim/viml/parser/expressions.c | |
parent | c7495ebcc0918ffd682083408895451318e41d1f (diff) | |
download | rneovim-45445e2e03f1cbfa25dde76ccf3e24d0d297cabe.tar.gz rneovim-45445e2e03f1cbfa25dde76ccf3e24d0d297cabe.tar.bz2 rneovim-45445e2e03f1cbfa25dde76ccf3e24d0d297cabe.zip |
unittests: Add some more edge test cases
Diffstat (limited to 'src/nvim/viml/parser/expressions.c')
-rw-r--r-- | src/nvim/viml/parser/expressions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/viml/parser/expressions.c b/src/nvim/viml/parser/expressions.c index 13f7131744..07bac89997 100644 --- a/src/nvim/viml/parser/expressions.c +++ b/src/nvim/viml/parser/expressions.c @@ -40,6 +40,13 @@ // E15: Invalid expression: [1, // // < , just exactly one E697 message. +// 6. Some expressions involving calling parenthesis which are treated +// separately by Vim even when not separated by spaces are treated as one +// expression by Neovim: e.g. ":echo (1)(1)" will yield runtime error after +// failing to call "1", while Vim will echo "1 1". Reasoning is the same: +// type of what is in the first expression is generally not known when +// parsing, so to have separate expressions like this separate them with +// spaces. #include <stdbool.h> #include <stddef.h> |