mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 9.0.0732: no check for white space before and after "=<<"
Problem: No check for white space before and after "=<<". (Doug Kearns) Solution: Check for white space in Vim9 script. (closes #11351)
This commit is contained in:
@@ -1904,6 +1904,25 @@ def Test_heredoc()
|
||||
STOP
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1012: Type mismatch; expected number but got list<string>', 1)
|
||||
|
||||
lines =<< trim END
|
||||
var lines=<< STOP
|
||||
xxx
|
||||
STOP
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<< STOP"', 1)
|
||||
lines =<< trim END
|
||||
var lines =<<STOP
|
||||
xxx
|
||||
STOP
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<<STOP"', 1)
|
||||
lines =<< trim END
|
||||
var lines=<<STOP
|
||||
xxx
|
||||
STOP
|
||||
END
|
||||
v9.CheckDefAndScriptFailure(lines, 'E1004: White space required before and after ''=<<'' at "=<<STOP"', 1)
|
||||
enddef
|
||||
|
||||
def Test_var_func_call()
|
||||
|
Reference in New Issue
Block a user