1
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 ()

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: 

6be7ef5bc7

Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
This commit is contained in:
zeertzjq 2024-04-12 17:05:11 +08:00 committed by GitHub
parent da3059b00f
commit a93a045e63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 0 deletions
runtime
ftplugin
lua/vim
test/old/testdir

14
runtime/ftplugin/bp.vim Normal file
View 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<"

View File

@ -236,6 +236,7 @@ local extension = {
bbclass = 'bitbake',
bl = 'blank',
blp = 'blueprint',
bp = 'bp',
bsd = 'bsdl',
bsdl = 'bsdl',
bst = 'bst',

View File

@ -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'],