diff options
author | Son Luong Ngoc <sluongng@gmail.com> | 2023-06-24 17:11:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-06-24 17:11:04 +0100 |
commit | b46e0f3263acd99c61df06ee3c4d1f6e0b471bc3 (patch) | |
tree | 4fca1a11286ad2d55cec9c9070db406af86e8fb1 /runtime | |
parent | 2d8e9985440d2f1ebb1be55296f371e10739bc76 (diff) |
patch 9.0.1661: BUCK files are not recognizedv9.0.1661
Problem: BUCK files are not recognized.
Solution: Recognize BUCK files as "bzl". (Son Luong Ngoc, closes #12564)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index aa33b6529a..bead0f31f2 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -266,11 +266,11 @@ au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml " 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*/*voicemail.conf* call s:StarSetf('asteriskvm') " 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 |