mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
vim-patch:9.1.0302: filetype: blueprint files are not recognized (#28292)
Problem: filetype: blueprint files are not recognized
Solution: Detect '*.bp' files as blueprint files, add
a minimal filetype plugin (Bruno Belanyi)
See: https://source.android.com/docs/setup/build
closes: vim/vim#14488
6be7ef5bc7
Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
This commit is contained in:
parent
da3059b00f
commit
a93a045e63
14
runtime/ftplugin/bp.vim
Normal file
14
runtime/ftplugin/bp.vim
Normal file
@ -0,0 +1,14 @@
|
||||
" Blueprint build system filetype plugin file
|
||||
" Language: Blueprint
|
||||
" Maintainer: Bruno BELANYI <bruno.vim@belanyi.fr>
|
||||
" Latest Revision: 2024-04-10
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=b:#
|
||||
setlocal commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = "setlocal comments< commentstring<"
|
@ -236,6 +236,7 @@ local extension = {
|
||||
bbclass = 'bitbake',
|
||||
bl = 'blank',
|
||||
blp = 'blueprint',
|
||||
bp = 'bp',
|
||||
bsd = 'bsdl',
|
||||
bsdl = 'bsdl',
|
||||
bst = 'bst',
|
||||
|
@ -127,6 +127,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'blade': ['file.blade.php'],
|
||||
\ 'blank': ['file.bl'],
|
||||
\ 'blueprint': ['file.blp'],
|
||||
\ 'bp': ['Android.bp'],
|
||||
\ 'bsdl': ['file.bsd', 'file.bsdl'],
|
||||
\ 'bst': ['file.bst'],
|
||||
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
||||
|
Loading…
Reference in New Issue
Block a user