mirror of
https://github.com/vim/vim.git
synced 2025-12-10 18:46:57 -05:00
Problem: filetype: bpftrace files are not recognized
Solution: Detect *.bt files as btftrace filetype,
include a btftrace filetype plugin (Stanislaw Gruszka)
closes: #18866
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 lines
341 B
VimL
15 lines
341 B
VimL
" Vim filetype plugin
|
|
" Language: bpftrace
|
|
" Maintainer: Stanislaw Gruszka <stf_xl@wp.pl>
|
|
" Last Change: 2025 Dec 05
|
|
|
|
if exists('b:did_ftplugin')
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
setlocal commentstring=//\ %s
|
|
|
|
let b:undo_ftplugin = "setlocal comments< commentstring<"
|