1
0
forked from aniani/vim

patch 8.2.2645: using inline function is not properly tested

Problem:    Using inline function is not properly tested.
Solution:   Add test cases, esp. for errors.  Minor code improvements.
This commit is contained in:
Bram Moolenaar
2021-03-22 20:49:02 +01:00
parent da1dbed0df
commit 49f1e9ec3e
5 changed files with 57 additions and 7 deletions

View File

@@ -86,6 +86,16 @@ def Test_endfunc_enddef()
enddef
END
CheckScriptFailure(lines, 'E1152:', 4)
lines =<< trim END
def Ok()
echo 'hello'
enddef | echo 'there'
def Bad()
echo 'hello'
enddef there
END
CheckScriptFailure(lines, 'E1173: Text found after enddef: there', 6)
enddef
def Test_missing_endfunc_enddef()