patch 9.1.0603: filetype: use correct extension for Dracula Commit: https://github.com/vim/vim/commit/5fb801a74faaf3ef1262c2988b8801500ca71646 Author: Evgeni Chasnovski <evgeni.chasnov...@gmail.com> Date: Fri Jul 19 15:59:29 2024 +0200
patch 9.1.0603: filetype: use correct extension for Dracula Problem: pattern detection for Dracula language uses "*lvs" and "*lpe". as there is no dot, those are not treated as extensions which they should (judging by 'runtime/syntax/dracula.vim' and common sense). Solution: use "*.lvs" and "*.lpe" patterns (Evgeni Chasnovski) closes: #15303 Signed-off-by: Evgeni Chasnovski <evgeni.chasnov...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f5c711162..cc4ac259f 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -713,7 +713,7 @@ if has("fname_case") endif " Dracula -au BufNewFile,BufRead *.drac,*.drc,*lvs,*lpe setf dracula +au BufNewFile,BufRead *.drac,*.drc,*.lvs,*.lpe setf dracula " Datascript au BufNewFile,BufRead *.ds setf datascript diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index cb4911253..6617ec908 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -225,7 +225,7 @@ def s:GetFilenameChecks(): dict<list<string>> 'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf', 'any/.local/share/flatpak/repo/config', '.notmuch-config'], dot: ['file.dot', 'file.gv'], - dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'], + dracula: ['file.drac', 'file.drc', 'file.lvs', 'file.lpe', 'drac.file'], dtd: ['file.dtd'], dtrace: ['/usr/lib/dtrace/io.d'], dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap'], diff --git a/src/version.c b/src/version.c index 539364943..4ca8e3f88 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 */ +/**/ + 603, /**/ 602, /**/ -- -- 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 on the web visit https://groups.google.com/d/msgid/vim_dev/E1sUorV-00EHi6-Uc%40256bit.org.