Problem: bpftrace files are not recognized from the hashbang line.
Solution: Add a hashbang check (Stanislaw Gruszka)
closes: #18992
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
# Invoked from "scripts.vim" in 'runtimepath'
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2025 Aug 09
+# Last Change: 2025 Dec 22
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
export def DetectFiletype()
elseif name =~ '^execlineb\>'
return 'execline'
+ # Bpftrace
+ elseif name =~ '^bpftrace\>'
+ return 'bpftrace'
+
# Vim
elseif name =~ '^vim\>'
return 'vim'
['#!/path/regina']],
janet: [['#!/path/janet']],
dart: [['#!/path/dart']],
+ bpftrace: [['#!/path/bpftrace']],
vim: [['#!/path/vim']],
}
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2007,
/**/
2006,
/**/