diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-02 17:08:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-02 17:08:59 +0200 |
commit | 4488f5a545691ca4c8802bad0d70a5e750fc8844 (patch) | |
tree | 3aaa87fc950215539e63a935edc666cb882e4301 /runtime | |
parent | e90d63ea904187ecbb09d0f7f21b71b302b30644 (diff) |
patch 8.2.1566: not all Bazel files are recognizedv8.2.1566
Problem: Not all Bazel files are recognized.
Solution: Add *.bazel and *.BUILD. (closes #6836)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ae6dc6f1d3..5d4d77609a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -240,10 +240,10 @@ 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,WORKSPACE,BUILD.bazel setf bzl +autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE setf bzl if has("fname_case") " There is another check for BUILD further below. - autocmd BufRead,BufNewFile BUILD setf bzl + autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl endif " C or lpc @@ -2042,7 +2042,7 @@ au BufNewFile,BufRead bzr_log.* setf bzr " Bazel build file if !has("fname_case") - au BufNewFile,BufRead BUILD setf bzl + au BufNewFile,BufRead *.BUILD,BUILD setf bzl endif " BIND zone |