summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/vim9_shebang.vim
diff options
context:
space:
mode:
authordkearns <dougkearns@gmail.com>2024-06-15 23:06:17 +1000
committerGitHub <noreply@github.com>2024-06-15 15:06:17 +0200
commitae321b51f7531b23545d64c3a98ed991a31dd5ee (patch)
treef82d747fc0bcd48d2ffb0e1c642b101fe6d4ac98 /runtime/syntax/testdir/input/vim9_shebang.vim
parent1c6734291295bf8aa39577840b40bb21a7f27120 (diff)
runtime(vim): Update base-syntax, match shebang lines (#15011)
Match shebang lines in Vim9 and legacy script. Mark these as an error if they appear anywhere other than the first line of a legacy-script file. In Vim9 script these match as normal line comments rather than an error. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input/vim9_shebang.vim')
-rwxr-xr-xruntime/syntax/testdir/input/vim9_shebang.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim9_shebang.vim b/runtime/syntax/testdir/input/vim9_shebang.vim
new file mode 100755
index 0000000000..c012fd9fc9
--- /dev/null
+++ b/runtime/syntax/testdir/input/vim9_shebang.vim
@@ -0,0 +1,7 @@
+#!/usr/bin/env vim -S
+vim9script
+
+# Vim shebang line
+
+# just a line comment
+#!/usr/bin/env vim -S