vim-patch:9.1.1934: filetype: not all starlark files are recognized (#36743)

Problem:  filetype: not all starlark files are recognized
Solution: Detect *.sky files as starlark filetype (Bruno Belanyi)

References:
- https://docs.bazel.build/versions/0.17.1/skylark/spec.html

closes: vim/vim#18807

3ba6a97fea

Co-authored-by: Bruno Belanyi <bruno@belanyi.fr>
This commit is contained in:
zeertzjq
2025-11-29 08:31:52 +08:00
committed by GitHub
parent 8c4e675983
commit da6edcb91b
2 changed files with 2 additions and 1 deletions

View File

@@ -1209,6 +1209,7 @@ local extension = {
ass = 'ssa',
st = 'st',
ipd = 'starlark',
sky = 'starlark',
star = 'starlark',
starlark = 'starlark',
imata = 'stata',

View File

@@ -766,7 +766,7 @@ func s:GetFilenameChecks() abort
\ 'sshconfig': ['ssh_config', '/.ssh/config', '/etc/ssh/ssh_config.d/file.conf', 'any/etc/ssh/ssh_config.d/file.conf', 'any/.ssh/config', 'any/.ssh/file.conf'],
\ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'],
\ 'st': ['file.st'],
\ 'starlark': ['file.ipd', 'file.star', 'file.starlark'],
\ 'starlark': ['file.ipd', 'file.sky', 'file.star', 'file.starlark'],
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
\ 'stp': ['file.stp'],
\ 'stylus': ['a.styl', 'file.stylus'],