summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/vim_ex_echo.vim
diff options
context:
space:
mode:
authordkearns <dougkearns@gmail.com>2024-02-28 05:59:30 +1100
committerGitHub <noreply@github.com>2024-02-27 19:59:30 +0100
commitb1427b46f5fe50a1daba102c4017d0ef2624b3ba (patch)
treecdf523c9a0acb5bc65da8e66bdf49661f69799ea /runtime/syntax/testdir/input/vim_ex_echo.vim
parentc7ddc9b73543d4b3b906b56948dc9a6861150e12 (diff)
runtime(vim): Update base-syntax, improve :echo highlighting (#14103)
- Normalise behaviour of :echo commands and improve expression matching. - Allow continued argument lines. - Refine string interpolation groups. - Remove duplicated :menu and :map generated commands that are handled specially later in the file. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input/vim_ex_echo.vim')
-rw-r--r--runtime/syntax/testdir/input/vim_ex_echo.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_ex_echo.vim b/runtime/syntax/testdir/input/vim_ex_echo.vim
new file mode 100644
index 0000000000..c031724b8a
--- /dev/null
+++ b/runtime/syntax/testdir/input/vim_ex_echo.vim
@@ -0,0 +1,20 @@
+" Vim :echo commands
+
+echo "Answer = " 42
+echon "Answer = " 42
+echomsg "Answer = " 42
+echowindow "Answer = " 42
+echoerr "Answer = " 42
+echoconsole "Answer = " 42
+
+echo "following command is :|" | |
+
+echohl WarningMsg | echo "Don't panic!" | echohl None
+
+echo "Answer = "
+ "\ comment
+ \ 42
+
+" :echo without {expr}
+echo| echo "Foo"
+