From cc38630d39d2aa99183756d55849117daf6dfbfa Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 15 Dec 2024 19:27:12 +0100 Subject: [PATCH] vim-patch:9.1.0929: filetype: lalrpop files are not recognized Problem: filetype: lalrpop files are not recognized Solution: detect '*.lalrpop' files as lalrpop filetype (David Thievon) References: https://github.com/lalrpop/lalrpop closes: vim/vim#16223 https://github.com/vim/vim/commit/5a2e0cf5f11c611c9b01f1bd6e7294edf0dd2bf4 Co-authored-by: David Thievon --- runtime/lua/vim/filetype.lua | 1 + test/old/testdir/test_filetype.vim | 1 + 2 files changed, 2 insertions(+) diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index eb68e24acf..83e82392de 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -672,6 +672,7 @@ local extension = { k = 'kwt', ACE = 'lace', ace = 'lace', + lalrpop = 'lalrpop', latte = 'latte', lte = 'latte', ld = 'ld', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 222cdb9504..18957da220 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -404,6 +404,7 @@ func s:GetFilenameChecks() abort \ 'kscript': ['file.ks'], \ 'kwt': ['file.k'], \ 'lace': ['file.ace', 'file.ACE'], + \ 'lalrpop': ['file.lalrpop'], \ 'latte': ['file.latte', 'file.lte'], \ 'ld': ['file.ld', 'any/usr/lib/aarch64-xilinx-linux/ldscripts/aarch64elf32b.x'], \ 'ldapconf': ['ldap.conf', '.ldaprc', 'ldaprc'],