comparison runtime/filetype.vim @ 11358:a6b9cdcde548 v8.0.0564

patch 8.0.0564: cannot detect Bazel BUILD files on some systems commit https://github.com/vim/vim/commit/39170e2d9761345df4be67d4d3928ac1094b9adf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 15 14:36:07 2017 +0200 patch 8.0.0564: cannot detect Bazel BUILD files on some systems Problem: Cannot detect Bazel BUILD files on some systems. Solution: Check for BUILD after script checks. (Issue https://github.com/vim/vim/issues/1340)
author Christian Brabandt <cb@256bit.org>
date Sat, 15 Apr 2017 14:45:05 +0200
parents 214f228718cf
children 0f8713fe20dc
comparison
equal deleted inserted replaced
11357:db5555f917cb 11358:a6b9cdcde548
1 " Vim support file to detect file types 1 " Vim support file to detect file types
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2017 Mar 27 4 " Last Change: 2017 Apr 15
5 5
6 " Listen very carefully, I will say this only once 6 " Listen very carefully, I will say this only once
7 if exists("did_load_filetypes") 7 if exists("did_load_filetypes")
8 finish 8 finish
9 endif 9 endif
308 308
309 " Blkid cache file 309 " Blkid cache file
310 au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml 310 au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
311 311
312 " Bazel (http://bazel.io) 312 " Bazel (http://bazel.io)
313 autocmd BufRead,BufNewFile *.bzl,WORKSPACE setfiletype bzl 313 autocmd BufRead,BufNewFile *.bzl,WORKSPACE setf bzl
314 if has("fname_case") 314 if has("fname_case")
315 autocmd BufRead,BufNewFile BUILD setfiletype bzl 315 " There is another check for BUILD further below.
316 autocmd BufRead,BufNewFile BUILD setf bzl
316 endif 317 endif
317 318
318 " C or lpc 319 " C or lpc
319 au BufNewFile,BufRead *.c call s:FTlpc() 320 au BufNewFile,BufRead *.c call s:FTlpc()
320 321
2600 au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') 2601 au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm')
2601 2602
2602 " Bazaar version control 2603 " Bazaar version control
2603 au BufNewFile,BufRead bzr_log.* setf bzr 2604 au BufNewFile,BufRead bzr_log.* setf bzr
2604 2605
2606 " Bazel build file
2607 if !has("fname_case")
2608 au BufNewFile,BufRead BUILD setf bzl
2609 endif
2610
2605 " BIND zone 2611 " BIND zone
2606 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') 2612 au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone')
2607 2613
2608 " Calendar 2614 " Calendar
2609 au BufNewFile,BufRead */.calendar/*, 2615 au BufNewFile,BufRead */.calendar/*,