From a93a045e63f96ba0b2b7f005818ddf16c2640038 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 12 Apr 2024 17:05:11 +0800 Subject: 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 https://github.com/vim/vim/commit/6be7ef5bc734ce6045d6f919f1a8559a3fa7f2fd Co-authored-by: Bruno BELANYI --- runtime/ftplugin/bp.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/bp.vim (limited to 'runtime/ftplugin/bp.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 +" 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<" -- cgit From 57c8f68e3bc7c7e830202c8d63e475368de50076 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 19 Apr 2024 15:37:16 +0200 Subject: vim-patch:cee034112d41 runtime(bp): fix comment definition in filetype plugin (vim/vim#14594) I somehow messed up the previous patch, I think a copy-paste error when creating the file. Blueprint files have C and C++ style comments, not shell-like '#' comments. https://github.com/vim/vim/commit/cee034112d41372d4c31abc327c6536b24fc25bd Co-authored-by: Bruno BELANYI --- runtime/ftplugin/bp.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/ftplugin/bp.vim') diff --git a/runtime/ftplugin/bp.vim b/runtime/ftplugin/bp.vim index cb925cb0ec..5ddebe5233 100644 --- a/runtime/ftplugin/bp.vim +++ b/runtime/ftplugin/bp.vim @@ -1,14 +1,14 @@ " Blueprint build system filetype plugin file " Language: Blueprint " Maintainer: Bruno BELANYI -" Latest Revision: 2024-04-10 +" Latest Revision: 2024-04-19 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 -setlocal comments=b:# -setlocal commentstring=#\ %s +setlocal comments=b://,s1:/*,mb:*,ex:*/ +setlocal commentstring=//\ %s let b:undo_ftplugin = "setlocal comments< commentstring<" -- cgit