forked from aniani/vim
patch 9.0.0174: no error for using "#{ comment" in a compiled function
Problem: No error for using "#{ comment" in a compiled function.
Solution: Make error checking for "#{" consistent. (closes #10855)
This commit is contained in:
@@ -74,6 +74,10 @@ def TestCompilingErrorInTry()
|
||||
delete('Xdir', 'rf')
|
||||
enddef
|
||||
|
||||
def Test_comment_error()
|
||||
v9.CheckDefFailure(['#{ comment'], 'E1170:')
|
||||
enddef
|
||||
|
||||
def Test_compile_error_in_called_function()
|
||||
var lines =<< trim END
|
||||
vim9script
|
||||
|
||||
Reference in New Issue
Block a user