patch 9.1.1694: filetype: Buck eXtension Lang files are not recognized

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: #18130

Signed-off-by: Jade Lovelace <jadel@mercury.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Jade Lovelace
2025-08-26 21:28:02 +02:00
committed by Christian Brabandt
parent de6e560150
commit 3aea867b27
3 changed files with 4 additions and 2 deletions

View File

@ -319,7 +319,7 @@ au BufNewFile,BufRead *.brs setf brightscript
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
" Bazel (https://bazel.build) and Buck2 (https://buck2.build/) " Bazel (https://bazel.build) and Buck2 (https://buck2.build/)
autocmd BufRead,BufNewFile *.bzl,*.bazel,WORKSPACE,WORKSPACE.bzlmod setf bzl autocmd BufRead,BufNewFile *.bzl,*.bxl,*.bazel,WORKSPACE,WORKSPACE.bzlmod setf bzl
if has("fname_case") if has("fname_case")
" There is another check for BUILD and BUCK further below. " There is another check for BUILD and BUCK further below.
autocmd BufRead,BufNewFile *.BUILD,BUILD,BUCK setf bzl autocmd BufRead,BufNewFile *.BUILD,BUILD,BUCK setf bzl

View File

@ -152,7 +152,7 @@ def s:GetFilenameChecks(): dict<list<string>>
brightscript: ['file.brs'], brightscript: ['file.brs'],
bsdl: ['file.bsd', 'file.bsdl'], bsdl: ['file.bsd', 'file.bsdl'],
bst: ['file.bst'], 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'], bzr: ['bzr_log.any', 'bzr_log.file'],
c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'], c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'],
c3: ['file.c3', 'file.c3i', 'file.c3t'], c3: ['file.c3', 'file.c3i', 'file.c3t'],

View File

@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1694,
/**/ /**/
1693, 1693,
/**/ /**/