Mercurial > vim
comparison src/testdir/test_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 | 18a341a4919c |
children | 889143dbe2cd |
comparison
equal
deleted
inserted
replaced
22032:089b4044883f | 22033:cdf95988615a |
---|---|
73 \ 'autoit': ['file.au3'], | 73 \ 'autoit': ['file.au3'], |
74 \ 'automake': ['GNUmakefile.am'], | 74 \ 'automake': ['GNUmakefile.am'], |
75 \ 'ave': ['file.ave'], | 75 \ 'ave': ['file.ave'], |
76 \ 'awk': ['file.awk', 'file.gawk'], | 76 \ 'awk': ['file.awk', 'file.gawk'], |
77 \ 'b': ['file.mch', 'file.ref', 'file.imp'], | 77 \ 'b': ['file.mch', 'file.ref', 'file.imp'], |
78 \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'], | |
78 \ 'bc': ['file.bc'], | 79 \ 'bc': ['file.bc'], |
79 \ 'bdf': ['file.bdf'], | 80 \ 'bdf': ['file.bdf'], |
80 \ 'bib': ['file.bib'], | 81 \ 'bib': ['file.bib'], |
81 \ 'bindzone': ['named.root'], | 82 \ 'bindzone': ['named.root'], |
82 \ 'blank': ['file.bl'], | 83 \ 'blank': ['file.bl'], |
525 \ 'xpm': ['file.xpm'], | 526 \ 'xpm': ['file.xpm'], |
526 \ } | 527 \ } |
527 | 528 |
528 let s:filename_case_checks = { | 529 let s:filename_case_checks = { |
529 \ 'modula2': ['file.DEF', 'file.MOD'], | 530 \ 'modula2': ['file.DEF', 'file.MOD'], |
531 \ 'bzl': ['file.BUILD', 'BUILD'], | |
530 \ } | 532 \ } |
531 | 533 |
532 func CheckItems(checks) | 534 func CheckItems(checks) |
533 for [ft, names] in items(a:checks) | 535 for [ft, names] in items(a:checks) |
534 for i in range(0, len(names) - 1) | 536 for i in range(0, len(names) - 1) |