mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.1504: Vim9: white space checks are only done for a :def function
Problem: Vim9: white space checks are only done for a :def function. Solution: Also do checks at the script level. Adjust the name of a few error messages.
This commit is contained in:
@@ -2336,7 +2336,8 @@ func Test_expr_fails()
|
||||
call CheckDefFailure(["let x = '1'isnot2"], 'E488:', 1)
|
||||
|
||||
call CheckDefFailure(["CallMe ('yes')"], 'E476:', 1)
|
||||
call CheckDefFailure(["CallMe2('yes','no')"], 'E1069:', 1)
|
||||
call CheckScriptFailure(["CallMe ('yes')"], 'E492:', 1)
|
||||
call CheckScriptAndDefFailure(["CallMe2('yes','no')"], 'E1069:', 1)
|
||||
call CheckDefFailure(["CallMe2('yes' , 'no')"], 'E1068:', 1)
|
||||
|
||||
call CheckDefFailure(["v:nosuch += 3"], 'E1001:', 1)
|
||||
|
Reference in New Issue
Block a user