Patch 9.0.1191

3 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 13, 2023, 10:35:50 AM1/13/23
to vim...@googlegroups.com

Patch 9.0.1191
Problem: Some Bazel files are not recognized.
Solution: Add an extra Bazel pattern. (Keith Smily, closes #11807)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-9.0.1190/runtime/filetype.vim 2023-01-11 21:24:23.407844367 +0000
--- runtime/filetype.vim 2023-01-13 15:33:04.439549074 +0000
***************
*** 264,270 ****
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
--- 264,270 ----
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
*** ../vim-9.0.1190/src/testdir/test_filetype.vim 2023-01-11 21:24:23.407844367 +0000
--- src/testdir/test_filetype.vim 2023-01-13 15:33:04.439549074 +0000
***************
*** 89,95 ****
\ 'blueprint': ['file.blp'],
\ 'bsdl': ['file.bsd', 'file.bsdl'],
\ 'bst': ['file.bst'],
! \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
\ 'bzr': ['bzr_log.any', 'bzr_log.file'],
\ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg'],
\ 'cabal': ['file.cabal'],
--- 89,95 ----
\ 'blueprint': ['file.blp'],
\ 'bsdl': ['file.bsd', 'file.bsdl'],
\ 'bst': ['file.bst'],
! \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
\ 'bzr': ['bzr_log.any', 'bzr_log.file'],
\ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg'],
\ 'cabal': ['file.cabal'],
*** ../vim-9.0.1190/src/version.c 2023-01-13 15:28:07.667489184 +0000
--- src/version.c 2023-01-13 15:34:32.251566104 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1191,
/**/

--
A)bort, R)etry, D)o it right this time

/// 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 ///
Reply all
Reply to author
Forward
0 new messages