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

f2814754c0

Co-authored-by: Stanislaw Gruszka <stf_xl@wp.pl>
This commit is contained in:
zeertzjq
2025-12-23 06:53:33 +08:00
parent a979a6237e
commit 92910a8ab8
2 changed files with 2 additions and 0 deletions

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 } },
}