diff options
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/ftplugin/bp.vim | 14 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
4 files changed, 20 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 14f633a2ac..99ac2028e1 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2998,6 +2998,9 @@ au BufNewFile,BufRead *.txt " Blueprint markup files au BufNewFile,BufRead *.blp setf blueprint +" Blueprint build system file +au BufNewFile,BufRead *.bp setf bp + " Use the filetype detect plugins. They may overrule any of the previously " detected filetypes. runtime! ftdetect/*.vim diff --git a/runtime/ftplugin/bp.vim b/runtime/ftplugin/bp.vim new file mode 100644 index 0000000000..cb925cb0ec --- /dev/null +++ b/runtime/ftplugin/bp.vim @@ -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<" diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 0af6e63d87..ddcd243dd6 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -126,6 +126,7 @@ def s:GetFilenameChecks(): dict<list<string>> 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'], diff --git a/src/version.c b/src/version.c index 2f049c9427..5fb7b1f82b 100644 --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 302, +/**/ 301, /**/ 300, |