diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-06 21:04:17 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-12 22:35:21 +0100 |
commit | 32589341a41f49a11e68d5b080271115787f2dc5 (patch) | |
tree | 6987fd5678742f9ce32cc5036c04600b2a612c54 /runtime | |
parent | daedbd93124e3334a1024b5d2c60e91b7aeb8fc5 (diff) | |
download | rneovim-32589341a41f49a11e68d5b080271115787f2dc5.tar.gz rneovim-32589341a41f49a11e68d5b080271115787f2dc5.tar.bz2 rneovim-32589341a41f49a11e68d5b080271115787f2dc5.zip |
vim-patch:8.1.1828: not strict enough checking syntax of method invocation
Problem: Not strict enough checking syntax of method invocation.
Solution: Check there is no white space inside ->method(.
https://github.com/vim/vim/commit/5184132ec015f5889a3195d911e609d214f06bed
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index a5940a963c..b397328bc0 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1053,12 +1053,19 @@ For methods that are also available as global functions this is the same as: > name(expr8 [, args]) There can also be methods specifically for the type of "expr8". -"->name(" must not contain white space. There can be white space before "->" -and after the "(". - -This allows for chaining, using the type that the method returns: > +This allows for chaining, passing the value that one method returns to the +next method: > mylist->filter(filterexpr)->map(mapexpr)->sort()->join() < + *E274* +"->name(" must not contain white space. There can be white space before the +"->" and after the "(", thus you can split the lines like this: > + mylist + \ ->filter(filterexpr) + \ ->map(mapexpr) + \ ->sort() + \ ->join() +< *expr9* number |