mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.2811: Vim9: error for missing white space doesn't say where
Problem: Vim9: error for missing white space doesn't say where it is missing Solution: Mention the command. (closes #8149)
This commit is contained in:
@@ -984,18 +984,26 @@ def Test_user_command_comment()
|
||||
command -nargs=1 Comd echom <q-args>
|
||||
|
||||
var lines =<< trim END
|
||||
vim9script
|
||||
Comd # comment
|
||||
vim9script
|
||||
Comd # comment
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
Comd# comment
|
||||
vim9script
|
||||
Comd# comment
|
||||
END
|
||||
CheckScriptFailure(lines, 'E1144:')
|
||||
|
||||
delcommand Comd
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
command Foo echo 'Foo'
|
||||
Foo3Bar
|
||||
END
|
||||
CheckScriptFailure(lines, 'E1144: Command "Foo" is not followed by white space: Foo3Bar')
|
||||
|
||||
delcommand Foo
|
||||
enddef
|
||||
|
||||
def Test_star_command()
|
||||
|
Reference in New Issue
Block a user