mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
vim-patch:9.1.1886: filetype: Android aconfig files are not recognized (#36374)
Problem: filetype: Android aconfig files are not recognized
Solution: Detect *.aconfig files as pbtxt filetype (Bruno Belanyi)
Reference:
https://source.android.com/docs/setup/build/feature-flagging/declare-flag
closes: vim/vim#18656
7adeb09bb2
Co-authored-by: Bruno Belanyi <bruno@belanyi.fr>
This commit is contained in:
@@ -928,6 +928,7 @@ local extension = {
|
||||
textproto = 'pbtxt',
|
||||
textpb = 'pbtxt',
|
||||
pbtxt = 'pbtxt',
|
||||
aconfig = 'pbtxt',
|
||||
g = 'pccts',
|
||||
pcmk = 'pcmk',
|
||||
pdf = 'pdf',
|
||||
|
||||
@@ -600,7 +600,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'],
|
||||
\ 'pascal': ['file.pas', 'file.dpr', 'file.lpr'],
|
||||
\ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak', '/etc/passwd', '/etc/passwd-', '/etc/passwd.edit', '/etc/shadow', '/etc/shadow-', '/etc/shadow.edit', '/var/backups/passwd.bak', '/var/backups/shadow.bak'],
|
||||
\ 'pbtxt': ['file.txtpb', 'file.textproto', 'file.textpb', 'file.pbtxt'],
|
||||
\ 'pbtxt': ['file.txtpb', 'file.textproto', 'file.textpb', 'file.pbtxt', 'file.aconfig'],
|
||||
\ 'pccts': ['file.g'],
|
||||
\ 'pcmk': ['file.pcmk'],
|
||||
\ 'pdf': ['file.pdf'],
|
||||
|
||||
Reference in New Issue
Block a user