mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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',
|
bbclass = 'bitbake',
|
||||||
bl = 'blank',
|
bl = 'blank',
|
||||||
blp = 'blueprint',
|
blp = 'blueprint',
|
||||||
|
bp = 'bp',
|
||||||
bsd = 'bsdl',
|
bsd = 'bsdl',
|
||||||
bsdl = 'bsdl',
|
bsdl = 'bsdl',
|
||||||
bst = 'bst',
|
bst = 'bst',
|
||||||
|
@ -127,6 +127,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'blade': ['file.blade.php'],
|
\ 'blade': ['file.blade.php'],
|
||||||
\ 'blank': ['file.bl'],
|
\ 'blank': ['file.bl'],
|
||||||
\ 'blueprint': ['file.blp'],
|
\ 'blueprint': ['file.blp'],
|
||||||
|
\ 'bp': ['Android.bp'],
|
||||||
\ 'bsdl': ['file.bsd', 'file.bsdl'],
|
\ 'bsdl': ['file.bsd', 'file.bsdl'],
|
||||||
\ 'bst': ['file.bst'],
|
\ 'bst': ['file.bst'],
|
||||||
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
||||||
|
Loading…
Reference in New Issue
Block a user