]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(vim): Update base-syntax, match shebang lines (#15011)
authordkearns <dougkearns@gmail.com>
Sat, 15 Jun 2024 13:06:17 +0000 (23:06 +1000)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 13:06:17 +0000 (15:06 +0200)
commitae321b51f7531b23545d64c3a98ed991a31dd5ee
treef82d747fc0bcd48d2ffb0e1c642b101fe6d4ac98
parent1c6734291295bf8aa39577840b40bb21a7f27120
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>
runtime/syntax/generator/vim.vim.base
runtime/syntax/testdir/dumps/vim9_shebang_00.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim9_shebang_99.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_shebang_00.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_shebang_99.dump [new file with mode: 0644]
runtime/syntax/testdir/input/vim9_shebang.vim [new file with mode: 0755]
runtime/syntax/testdir/input/vim_shebang.vim [new file with mode: 0755]
runtime/syntax/vim.vim