mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
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:
@@ -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 } },
|
||||
}
|
||||
|
||||
|
||||
@@ -1089,6 +1089,7 @@ func s:GetScriptChecks() abort
|
||||
\ ['#!/path/regina']],
|
||||
\ 'janet': [['#!/path/janet']],
|
||||
\ 'dart': [['#!/path/dart']],
|
||||
\ 'bpftrace': [['#!/path/bpftrace']],
|
||||
\ 'vim': [['#!/path/vim']],
|
||||
\ }
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user