vim-patch:9.1.2007: filetype: bpftrace hashbang lines are not recognized

Problem:    bpftrace files are not recognized from the hashbang line.
Solution:   Add a hashbang check (Stanislaw Gruszka)

closes: vim/vim#18992

https://github.com/vim/vim/commit/f2814754c0cd39875adcadffcb73206a83a46099

Co-authored-by: Stanislaw Gruszka <stf_xl@wp.pl>
This commit is contained in:
zeertzjqandStanislaw Gruszka committed 2025-12-23 07:20:37 +08:00
1 parent a979a6237e
commit 92910a8ab8
2 files changed
+2

No files matched your search

+1
View File
@@ -2040,6 +2040,7 @@ local patterns_hashbang = {
['^janet\\>'] = { 'janet', { vim_regex = true } },
['^dart\\>'] = { 'dart', { vim_regex = true } },
['^execlineb\\>'] = { 'execline', { vim_regex = true } },
['^bpftrace\\>'] = { 'bpftrace', { vim_regex = true } },
['^vim\\>'] = { 'vim', { vim_regex = true } },
}
+1
View File
@@ -1089,6 +1089,7 @@ func s:GetScriptChecks() abort
\ ['#!/path/regina']],
\ 'janet': [['#!/path/janet']],
\ 'dart': [['#!/path/dart']],
\ 'bpftrace': [['#!/path/bpftrace']],
\ 'vim': [['#!/path/vim']],
\ }
endfunc