From: Bruno Belanyi Date: Tue, 28 Oct 2025 20:31:55 +0000 (+0000) Subject: patch 9.1.1886: filetype: Android aconfig files are not recognized X-Git-Tag: v9.1.1886^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7adeb09bb24a9d29179926dd391c3d67cea26057;p=thirdparty%2Fvim.git patch 9.1.1886: filetype: Android aconfig files are not recognized 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: #18656 Signed-off-by: Bruno Belanyi Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 39ee2a94c9..791dccf67c 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -3,7 +3,7 @@ vim9script # Vim functions for file type detection # # Maintainer: The Vim Project -# Last Change: 2025 Oct 09 +# Last Change: 2025 Oct 28 # Former Maintainer: Bram Moolenaar # These functions are moved here from runtime/filetype.vim to make startup @@ -2473,6 +2473,7 @@ const ft_from_ext = { "textproto": "pbtxt", "textpb": "pbtxt", "pbtxt": "pbtxt", + "aconfig": "pbtxt", # Android aconfig files # Poke "pk": "poke", # Nvidia PTX (Parallel Thread Execution) diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e3cc298bab..f7d95082d8 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -603,7 +603,7 @@ def s:GetFilenameChecks(): dict> 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'], diff --git a/src/version.c b/src/version.c index 7b814f7260..f52904b538 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1886, /**/ 1885, /**/