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
" 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