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)
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 401cc0f..5732e1e 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -984,18 +984,26 @@
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()