0
0
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:
Bram Moolenaar
2021-04-25 16:35:55 +02:00
parent d386e923c7
commit b98cec28d9
4 changed files with 21 additions and 8 deletions

View File

@@ -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()