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:
committed by
Christian Brabandt
parent
de6e560150
commit
3aea867b27
@ -319,7 +319,7 @@ au BufNewFile,BufRead *.brs setf brightscript
|
||||
au BufNewFile,BufRead *.bsd,*.bsdl setf bsdl
|
||||
|
||||
" 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")
|
||||
" There is another check for BUILD and BUCK further below.
|
||||
autocmd BufRead,BufNewFile *.BUILD,BUILD,BUCK setf bzl
|
||||
|
||||
@ -152,7 +152,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
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'],
|
||||
|
||||
@ -724,6 +724,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1694,
|
||||
/**/
|
||||
1693,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user