patch 9.1.0929: filetype: lalrpop files are not recognized Commit: https://github.com/vim/vim/commit/5a2e0cf5f11c611c9b01f1bd6e7294edf0dd2bf4 Author: David Thievon <pdk...@gmail.com> Date: Sun Dec 15 19:22:17 2024 +0100
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: #16223 Signed-off-by: David Thievon <pdk...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index eb1d85128..413eb6eb9 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1315,6 +1315,9 @@ au BufNewFile,BufRead Kconfig,Kconfig.debug,Config.in setf kconfig " Lace (ISE) au BufNewFile,BufRead *.ace,*.ACE setf lace +" Lalrpop +au BufNewFile,Bufread *.lalrpop setf lalrpop + " Larch Shared Language au BufNewFile,BufRead .lsl call dist#ft#FTlsl() diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 583cca639..8f7254fd3 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -407,6 +407,7 @@ def s:GetFilenameChecks(): dict<list<string>> 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'], diff --git a/src/version.c b/src/version.c index e795be6d3..3f9d8003b 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 929, /**/ 928, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tMtNU-00G2HX-5d%40256bit.org.