]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(sh): Update ftplugin, fix #14101 (#14102)
authordkearns <dougkearns@gmail.com>
Tue, 27 Feb 2024 19:00:32 +0000 (06:00 +1100)
committerGitHub <noreply@github.com>
Tue, 27 Feb 2024 19:00:32 +0000 (20:00 +0100)
Add the 'b' flag to 'comments', so that the shebang line is not detected as comment.

Fixes #14101.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/sh.vim

index fccfe4be91f1a1354ff80e1601ec07333a50d25c..6d2093bf83ab4bdc56886a7be17602c6533eab2d 100644 (file)
@@ -4,7 +4,7 @@
 " Previous Maintainer: Dan Sharp
 " Contributor:         Enno Nagel <ennonagel+vim@gmail.com>
 "                      Eisuke Kawashima
-" Last Change:         2024 Jan 14
+" Last Change:         2024 Feb 27
 
 if exists("b:did_ftplugin")
   finish
@@ -14,7 +14,7 @@ let b:did_ftplugin = 1
 let s:save_cpo = &cpo
 set cpo-=C
 
-setlocal comments=:#
+setlocal comments=b:#
 setlocal commentstring=#\ %s
 setlocal formatoptions-=t formatoptions+=croql