Patch 9.0.1661
Problem: BUCK files are not recognized.
Solution: Recognize BUCK files as "bzl". (Son Luong Ngoc, closes #12564)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim
*** ../vim-9.0.1660/runtime/filetype.vim 2023-06-22 14:36:32.417224944 +0100
--- runtime/filetype.vim 2023-06-24 17:08:19.637247726 +0100
***************
*** 266,276 ****
" BSDL
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
! " Bazel (
http://bazel.io)
autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE,WORKSPACE.bzlmod setf bzl
if has("fname_case")
! " There is another check for BUILD further below.
! autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl
endif
" Busted (Lua unit testing framework - configuration files)
--- 266,276 ----
" BSDL
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
! " Bazel (
https://bazel.build) and Buck2 (
https://buck2.build/)
autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE,WORKSPACE.bzlmod setf bzl
if has("fname_case")
! " There is another check for BUILD and BUCK further below.
! autocmd BufRead,BufNewFile *.BUILD,BUILD,BUCK setf bzl
endif
" Busted (Lua unit testing framework - configuration files)
***************
*** 2605,2613 ****
" Bazaar version control
au BufNewFile,BufRead bzr_log.* setf bzr
! " Bazel build file
if !has("fname_case")
! au BufNewFile,BufRead *.BUILD,BUILD setf bzl
endif
" BIND zone
--- 2605,2613 ----
" Bazaar version control
au BufNewFile,BufRead bzr_log.* setf bzr
! " Bazel and Buck2 build file
if !has("fname_case")
! au BufNewFile,BufRead *.BUILD,BUILD,BUCK setf bzl
endif
" BIND zone
*** ../vim-9.0.1660/src/testdir/test_filetype.vim 2023-06-22 14:36:32.417224944 +0100
--- src/testdir/test_filetype.vim 2023-06-24 17:03:51.089511402 +0100
***************
*** 814,820 ****
def s:GetFilenameCaseChecks(): dict<list<string>>
return {
modula2: ['file.DEF'],
! bzl: ['file.BUILD', 'BUILD'],
}
enddef
--- 814,820 ----
def s:GetFilenameCaseChecks(): dict<list<string>>
return {
modula2: ['file.DEF'],
! bzl: ['file.BUILD', 'BUILD', 'BUCK'],
}
enddef
*** ../vim-9.0.1660/src/version.c 2023-06-24 16:42:22.158719360 +0100
--- src/version.c 2023-06-24 17:05:30.365417262 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1661,
/**/
--
hundred-and-one symptoms of being an internet addict:
229. You spend so much time thinking what to add on this list.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///