Patch 8.2.1566
Problem:    Not all Bazel files are recognized.
Solution:   Add *.bazel and *.BUILD. (closes #6836)
Files:      runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-8.2.1565/runtime/filetype.vim        2020-08-15 14:07:19.578165841 
+0200
--- runtime/filetype.vim        2020-09-02 17:06:58.900681153 +0200
***************
*** 240,249 ****
  au BufNewFile,BufRead *bsd,*.bsdl             setf bsdl
  
  " Bazel (http://bazel.io)
! autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel        setf bzl
  if has("fname_case")
    " There is another check for BUILD further below.
!   autocmd BufRead,BufNewFile BUILD            setf bzl
  endif
  
  " C or lpc
--- 240,249 ----
  au BufNewFile,BufRead *bsd,*.bsdl             setf bsdl
  
  " Bazel (http://bazel.io)
! autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE    setf bzl
  if has("fname_case")
    " There is another check for BUILD further below.
!   autocmd BufRead,BufNewFile *.BUILD,BUILD            setf bzl
  endif
  
  " C or lpc
***************
*** 2042,2048 ****
  
  " Bazel build file
  if !has("fname_case")
!   au BufNewFile,BufRead BUILD                 setf bzl
  endif
  
  " BIND zone
--- 2042,2048 ----
  
  " Bazel build file
  if !has("fname_case")
!   au BufNewFile,BufRead *.BUILD,BUILD                 setf bzl
  endif
  
  " BIND zone
*** ../vim-8.2.1565/src/testdir/test_filetype.vim       2020-08-17 
21:16:29.261650308 +0200
--- src/testdir/test_filetype.vim       2020-09-02 17:06:58.900681153 +0200
***************
*** 75,80 ****
--- 75,81 ----
      \ 'ave': ['file.ave'],
      \ 'awk': ['file.awk', 'file.gawk'],
      \ 'b': ['file.mch', 'file.ref', 'file.imp'],
+     \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
      \ 'bc': ['file.bc'],
      \ 'bdf': ['file.bdf'],
      \ 'bib': ['file.bib'],
***************
*** 527,532 ****
--- 528,534 ----
  
  let s:filename_case_checks = {
      \ 'modula2': ['file.DEF', 'file.MOD'],
+     \ 'bzl': ['file.BUILD', 'BUILD'],
      \ }
  
  func CheckItems(checks)
*** ../vim-8.2.1565/src/version.c       2020-09-02 12:58:44.535773436 +0200
--- src/version.c       2020-09-02 13:26:07.175508062 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1566,
  /**/

-- 
GUARD #1:  What, ridden on a horse?
ARTHUR:    Yes!
GUARD #1:  You're using coconuts!
ARTHUR:    What?
GUARD #1:  You've got two empty halves of coconut and you're bangin' 'em
           together.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202009021509.082F9YpX3617158%40masaka.moolenaar.net.

Raspunde prin e-mail lui