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:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 19:06:15 +0000
commit45e7de1c4f501ef5d3b6f08126a2ad82ccb07533 (patch)
treeb5039a1ec7ad36b69e101b52645040b88a2e929b /src/testdir/test_vim9_enum.vim
parentAdding upstream version 2:9.1.0374. (diff)
downloadvim-45e7de1c4f501ef5d3b6f08126a2ad82ccb07533.tar.xz
vim-45e7de1c4f501ef5d3b6f08126a2ad82ccb07533.zip
Adding upstream version 2:9.1.0377.upstream/2%9.1.0377
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/testdir/test_vim9_enum.vim')
-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