vim-patch:9.1.1694: filetype: Buck eXtension Lang files are not recognized (#35504)

Problem:  filetype: Buck eXtension Lang files are not recognized
Solution: Detect *.bxl files as bzl filetype.
          (Jade Lovelace)

References:
- https://buck2.build/docs/bxl/

closes: vim/vim#18130

3aea867b27

Co-authored-by: Jade Lovelace <jadel@mercury.com>
This commit is contained in:
zeertzjq
2025-08-27 12:23:31 +08:00
committed by GitHub
parent 6014174b71
commit 117b129378
2 changed files with 2 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ local extension = {
or 'btm'
end,
bzl = 'bzl',
bxl = 'bzl',
bazel = 'bzl',
BUILD = 'bzl',
mdh = 'c',

View File

@@ -147,7 +147,7 @@ func s:GetFilenameChecks() abort
\ 'brightscript': ['file.brs'],
\ 'bsdl': ['file.bsd', 'file.bsdl'],
\ 'bst': ['file.bst'],
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
\ 'bzl': ['file.bazel', 'file.bzl', 'file.bxl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
\ 'bzr': ['bzr_log.any', 'bzr_log.file'],
\ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'],
\ 'c3': ['file.c3', 'file.c3i', 'file.c3t'],