From: Keith Smiley Date: Fri, 13 Jan 2023 15:35:17 +0000 (+0000) Subject: patch 9.0.1191: some Bazel files are not recognized X-Git-Tag: v9.0.1191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3213952966896ffb1d8fa186bcf8c43359fca0f0;p=vim patch 9.0.1191: some Bazel files are not recognized Problem: Some Bazel files are not recognized. Solution: Add an extra Bazel pattern. (Keith Smily, closes #11807) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index d19906327..dcd83b4e1 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -264,7 +264,7 @@ au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl " Bazel (http://bazel.io) -autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE setf bzl +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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d0cd3c5e3..b58fb400d 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -89,7 +89,7 @@ let s:filename_checks = { \ 'blueprint': ['file.blp'], \ 'bsdl': ['file.bsd', 'file.bsdl'], \ 'bst': ['file.bst'], - \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'], + \ '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'], diff --git a/src/version.c b/src/version.c index 202cfca74..248b4203c 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1191, /**/ 1190, /**/