0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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>
This commit is contained in:
dkearns
2024-06-15 23:06:17 +10:00
committed by GitHub
parent 1c67342912
commit ae321b51f7
8 changed files with 109 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env vim -S
vim9script
# Vim shebang line
# just a line comment
#!/usr/bin/env vim -S

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env vim -S
" Vim shebang line
#!/usr/bin/env vim -S