diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-02 23:25:08 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-04-02 23:59:49 +0200 |
commit | eb00fc0cf07f7aac5d9e3c31624f2a37dcdc4237 (patch) | |
tree | 5ed48927ad3b3ba8d6a5b08fa115b78f4eeb2623 | |
parent | b982f0e654662588053cc7c9b53b7841adf5cf5c (diff) | |
download | rneovim-eb00fc0cf07f7aac5d9e3c31624f2a37dcdc4237.tar.gz rneovim-eb00fc0cf07f7aac5d9e3c31624f2a37dcdc4237.tar.bz2 rneovim-eb00fc0cf07f7aac5d9e3c31624f2a37dcdc4237.zip |
vim-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 vim/vim#1340)
https://github.com/vim/vim/commit/39170e2d9761345df4be67d4d3928ac1094b9adf
vim-patch:8.0.1283: test 86 fails under ASAN
-rw-r--r-- | runtime/filetype.vim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 0301bdd0a1..f8a29fa2b3 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -227,9 +227,10 @@ au BufNewFile,BufRead *.bl setf blank au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml " Bazel (http://bazel.io) -autocmd BufRead,BufNewFile *.bzl,WORKSPACE setfiletype bzl +autocmd BufRead,BufNewFile *.bzl,WORKSPACE setf bzl if has("fname_case") - autocmd BufRead,BufNewFile BUILD setfiletype bzl + " There is another check for BUILD further below. + autocmd BufRead,BufNewFile BUILD setf bzl endif " C or lpc @@ -1934,6 +1935,11 @@ au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm') " Bazaar version control au BufNewFile,BufRead bzr_log.* setf bzr +" Bazel build file +if !has("fname_case") + au BufNewFile,BufRead BUILD setf bzl +endif + " BIND zone au BufNewFile,BufRead */named/db.*,*/bind/db.* call s:StarSetf('bindzone') |