Mercurial > vim
comparison src/testdir/test_vim9_expr.vim @ 21737:a849c984b485 v8.2.1418
patch 8.2.1418: Vim9: invalid error for missing white space
Commit: https://github.com/vim/vim/commit/8294d49937b99067522fda8a9399bb9533e3c44e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 10 22:40:56 2020 +0200
patch 8.2.1418: Vim9: invalid error for missing white space
Problem: Vim9: invalid error for missing white space after function.
Solution: Do not skip over white space. (closes https://github.com/vim/vim/issues/6679)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Aug 2020 22:45:04 +0200 |
parents | 1bb5adfe5966 |
children | caf0286cf02b |
comparison
equal
deleted
inserted
replaced
21736:38ea8c418214 | 21737:a849c984b485 |
---|---|
704 | 704 |
705 def RetVoid() | 705 def RetVoid() |
706 let x = 1 | 706 let x = 1 |
707 enddef | 707 enddef |
708 | 708 |
709 def Test_expr4_vimscript() | 709 def Test_expr4_vim9script() |
710 # check line continuation | 710 # check line continuation |
711 let lines =<< trim END | 711 let lines =<< trim END |
712 vim9script | 712 vim9script |
713 let var = 0 | 713 let var = 0 |
714 < 1 | 714 < 1 |
817 lines =<< trim END | 817 lines =<< trim END |
818 vim9script | 818 vim9script |
819 echo 2!= 3 | 819 echo 2!= 3 |
820 END | 820 END |
821 CheckScriptFailure(lines, 'E1004:') | 821 CheckScriptFailure(lines, 'E1004:') |
822 | |
823 lines =<< trim END | |
824 vim9script | |
825 echo len('xxx') == 3 | |
826 END | |
827 CheckScriptSuccess(lines) | |
822 enddef | 828 enddef |
823 | 829 |
824 func Test_expr4_fails() | 830 func Test_expr4_fails() |
825 let msg = "white space required before and after '>'" | 831 let msg = "white space required before and after '>'" |
826 call CheckDefFailure(["let x = 1>2"], msg) | 832 call CheckDefFailure(["let x = 1>2"], msg) |