Mercurial > vim
changeset 32659:4e2d73ee7350 v9.0.1661
patch 9.0.1661: BUCK files are not recognized
Commit: https://github.com/vim/vim/commit/b46e0f3263acd99c61df06ee3c4d1f6e0b471bc3
Author: Son Luong Ngoc <sluongng@gmail.com>
Date: Sat Jun 24 17:11:04 2023 +0100
patch 9.0.1661: BUCK files are not recognized
Problem: BUCK files are not recognized.
Solution: Recognize BUCK files as "bzl". (Son Luong Ngoc, closes https://github.com/vim/vim/issues/12564)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Jun 2023 18:15:05 +0200 |
parents | ad37fb33284c |
children | 14298ba478dc |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -266,11 +266,11 @@ au BufNewFile,BufRead */etc/blkid.tab,*/ " BSDL au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl -" Bazel (http://bazel.io) +" 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 further below. - autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl + " 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,9 +2605,9 @@ au BufNewFile,BufRead *asterisk*/*voicem " Bazaar version control au BufNewFile,BufRead bzr_log.* setf bzr -" Bazel build file +" Bazel and Buck2 build file if !has("fname_case") - au BufNewFile,BufRead *.BUILD,BUILD setf bzl + au BufNewFile,BufRead *.BUILD,BUILD,BUCK setf bzl endif " BIND zone