comparison runtime/filetype.vim @ 22033:cdf95988615a v8.2.1566

patch 8.2.1566: not all Bazel files are recognized Commit: https://github.com/vim/vim/commit/4488f5a545691ca4c8802bad0d70a5e750fc8844 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 2 17:08:59 2020 +0200 patch 8.2.1566: not all Bazel files are recognized Problem: Not all Bazel files are recognized. Solution: Add *.bazel and *.BUILD. (closes https://github.com/vim/vim/issues/6836)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Sep 2020 17:15:03 +0200
parents c2c2e57562ee
children 889143dbe2cd
comparison
equal deleted inserted replaced
22032:089b4044883f 22033:cdf95988615a
238 238
239 " BSDL 239 " BSDL
240 au BufNewFile,BufRead *bsd,*.bsdl setf bsdl 240 au BufNewFile,BufRead *bsd,*.bsdl setf bsdl
241 241
242 " Bazel (http://bazel.io) 242 " Bazel (http://bazel.io)
243 autocmd BufRead,BufNewFile *.bzl,WORKSPACE,BUILD.bazel setf bzl 243 autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE setf bzl
244 if has("fname_case") 244 if has("fname_case")
245 " There is another check for BUILD further below. 245 " There is another check for BUILD further below.
246 autocmd BufRead,BufNewFile BUILD setf bzl 246 autocmd BufRead,BufNewFile *.BUILD,BUILD setf bzl
247 endif 247 endif
248 248
249 " C or lpc 249 " C or lpc
250 au BufNewFile,BufRead *.c call dist#ft#FTlpc() 250 au BufNewFile,BufRead *.c call dist#ft#FTlpc()
251 au BufNewFile,BufRead *.lpc,*.ulpc setf lpc 251 au BufNewFile,BufRead *.lpc,*.ulpc setf lpc
2040 " Bazaar version control 2040 " Bazaar version control
2041 au BufNewFile,BufRead bzr_log.* setf bzr 2041 au BufNewFile,BufRead bzr_log.* setf bzr
2042 2042
2043 " Bazel build file 2043 " Bazel build file
2044 if !has("fname_case") 2044 if !has("fname_case")
2045 au BufNewFile,BufRead BUILD setf bzl 2045 au BufNewFile,BufRead *.BUILD,BUILD setf bzl
2046 endif 2046 endif
2047 2047
2048 " BIND zone 2048 " BIND zone
2049 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') 2049 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone')
2050 2050