mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51:48 +00:00
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:
@@ -1209,6 +1209,7 @@ local extension = {
|
|||||||
ass = 'ssa',
|
ass = 'ssa',
|
||||||
st = 'st',
|
st = 'st',
|
||||||
ipd = 'starlark',
|
ipd = 'starlark',
|
||||||
|
sky = 'starlark',
|
||||||
star = 'starlark',
|
star = 'starlark',
|
||||||
starlark = 'starlark',
|
starlark = 'starlark',
|
||||||
imata = 'stata',
|
imata = 'stata',
|
||||||
|
|||||||
@@ -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'],
|
\ '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'],
|
\ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'],
|
||||||
\ 'st': ['file.st'],
|
\ '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'],
|
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
|
||||||
\ 'stp': ['file.stp'],
|
\ 'stp': ['file.stp'],
|
||||||
\ 'stylus': ['a.styl', 'file.stylus'],
|
\ 'stylus': ['a.styl', 'file.stylus'],
|
||||||
|
|||||||
Reference in New Issue
Block a user