summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_enum.vim
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 19:06:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 19:06:16 +0000
commit1585b6dc94be23cda47cdeac939c2c74a8bd4c37 (patch)
tree745848c44400b14f40b4fb05aaf634578a525020 /src/testdir/test_vim9_enum.vim
parentReleasing progress-linux version 2:9.1.0374-1~progress7.99u1. (diff)
downloadvim-1585b6dc94be23cda47cdeac939c2c74a8bd4c37.tar.xz
vim-1585b6dc94be23cda47cdeac939c2c74a8bd4c37.zip
Merging upstream version 2:9.1.0377.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/testdir/test_vim9_enum.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_enum.vim b/src/testdir/test_vim9_enum.vim
index 274b556..bc54bee 100644
--- a/src/testdir/test_vim9_enum.vim
+++ b/src/testdir/test_vim9_enum.vim
@@ -97,7 +97,16 @@ def Test_enum_parse()
vim9script
enum Something | endenum
END
- v9.CheckSourceFailure(lines, 'E1420: Missing :endenum', 3)
+ v9.CheckSourceFailure(lines, 'E488: Trailing characters: | endenum', 2)
+
+ # another command follows the enum name
+ lines =<< trim END
+ vim9script
+ enum Something | var x = 10
+ Foo
+ endenum
+ END
+ v9.CheckSourceFailure(lines, 'E488: Trailing characters: | var x = 10', 2)
# Try to define an enum with the same name as an existing variable
lines =<< trim END