Mercurial > vim
comparison src/testdir/test_vim9_cmd.vim @ 24543:b3bd27751e09 v8.2.2811
patch 8.2.2811: Vim9: error for missing white space doesn't say where
Commit: https://github.com/vim/vim/commit/b98cec28d95b2184c64a0646458c1e62deb2524b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 25 16:35:55 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Apr 2021 16:45:03 +0200 |
parents | df90c61c306c |
children | fe29b220eece |
comparison
equal
deleted
inserted
replaced
24542:8d5235a3f487 | 24543:b3bd27751e09 |
---|---|
982 | 982 |
983 def Test_user_command_comment() | 983 def Test_user_command_comment() |
984 command -nargs=1 Comd echom <q-args> | 984 command -nargs=1 Comd echom <q-args> |
985 | 985 |
986 var lines =<< trim END | 986 var lines =<< trim END |
987 vim9script | 987 vim9script |
988 Comd # comment | 988 Comd # comment |
989 END | 989 END |
990 CheckScriptSuccess(lines) | 990 CheckScriptSuccess(lines) |
991 | 991 |
992 lines =<< trim END | 992 lines =<< trim END |
993 vim9script | 993 vim9script |
994 Comd# comment | 994 Comd# comment |
995 END | 995 END |
996 CheckScriptFailure(lines, 'E1144:') | 996 CheckScriptFailure(lines, 'E1144:') |
997 | |
998 delcommand Comd | 997 delcommand Comd |
998 | |
999 lines =<< trim END | |
1000 vim9script | |
1001 command Foo echo 'Foo' | |
1002 Foo3Bar | |
1003 END | |
1004 CheckScriptFailure(lines, 'E1144: Command "Foo" is not followed by white space: Foo3Bar') | |
1005 | |
1006 delcommand Foo | |
999 enddef | 1007 enddef |
1000 | 1008 |
1001 def Test_star_command() | 1009 def Test_star_command() |
1002 var lines =<< trim END | 1010 var lines =<< trim END |
1003 vim9script | 1011 vim9script |