aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-07 15:18:04 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-08-12 22:35:23 +0100
commit7474db98afcae3a47732d1ba99971b500a519cb2 (patch)
tree40ddcde1aefce987999830078931d54cbd6d4fba /src/nvim/testdir
parent98dfe4adc48d83e05b2ee039869853760de9c096 (diff)
downloadrneovim-7474db98afcae3a47732d1ba99971b500a519cb2.tar.gz
rneovim-7474db98afcae3a47732d1ba99971b500a519cb2.tar.bz2
rneovim-7474db98afcae3a47732d1ba99971b500a519cb2.zip
vim-patch:8.1.1878: negative float before method not parsed correctly
Problem: Negative float before method not parsed correctly. Solution: Apply "!" and "-" in front of expression before using ->. https://github.com/vim/vim/commit/9cfe8f6e68de4bfb5942d84f4465de914a747b3f
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_method.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_method.vim b/src/nvim/testdir/test_method.vim
index f08ca4e7f1..7cb4eec400 100644
--- a/src/nvim/testdir/test_method.vim
+++ b/src/nvim/testdir/test_method.vim
@@ -120,6 +120,11 @@ func Test_method_funcref()
delfunc Concat
endfunc
+func Test_method_float()
+ eval 1.234->string()->assert_equal('1.234')
+ eval -1.234->string()->assert_equal('-1.234')
+endfunc
+
func Test_method_syntax()
eval [1, 2, 3] ->sort( )
eval [1, 2, 3]