0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.1566: not all Bazel files are recognized

Problem:    Not all Bazel files are recognized.
Solution:   Add *.bazel and *.BUILD. (closes #6836)
This commit is contained in:
Bram Moolenaar
2020-09-02 17:08:59 +02:00
parent e90d63ea90
commit 4488f5a545
3 changed files with 7 additions and 3 deletions

View File

@@ -240,10 +240,10 @@ au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
au BufNewFile,BufRead *bsd,*.bsdl setf bsdl au BufNewFile,BufRead *bsd,*.bsdl setf bsdl
" Bazel (http://bazel.io) " Bazel (http://bazel.io)
autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel setf bzl autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE setf bzl
if has("fname_case") if has("fname_case")
" There is another check for BUILD further below. " There is another check for BUILD further below.
autocmd BufRead,BufNewFile BUILD setf bzl autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl
endif endif
" C or lpc " C or lpc
@@ -2042,7 +2042,7 @@ au BufNewFile,BufRead bzr_log.* setf bzr
" Bazel build file " Bazel build file
if !has("fname_case") if !has("fname_case")
au BufNewFile,BufRead BUILD setf bzl au BufNewFile,BufRead *.BUILD,BUILD setf bzl
endif endif
" BIND zone " BIND zone

View File

@@ -75,6 +75,7 @@ let s:filename_checks = {
\ 'ave': ['file.ave'], \ 'ave': ['file.ave'],
\ 'awk': ['file.awk', 'file.gawk'], \ 'awk': ['file.awk', 'file.gawk'],
\ 'b': ['file.mch', 'file.ref', 'file.imp'], \ 'b': ['file.mch', 'file.ref', 'file.imp'],
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
\ 'bc': ['file.bc'], \ 'bc': ['file.bc'],
\ 'bdf': ['file.bdf'], \ 'bdf': ['file.bdf'],
\ 'bib': ['file.bib'], \ 'bib': ['file.bib'],
@@ -527,6 +528,7 @@ let s:filename_checks = {
let s:filename_case_checks = { let s:filename_case_checks = {
\ 'modula2': ['file.DEF', 'file.MOD'], \ 'modula2': ['file.DEF', 'file.MOD'],
\ 'bzl': ['file.BUILD', 'BUILD'],
\ } \ }
func CheckItems(checks) func CheckItems(checks)

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1566,
/**/ /**/
1565, 1565,
/**/ /**/