Commit: patch 9.1.0603: filetype: use correct extension for Dracula

4 views
Skip to first unread message

Christian Brabandt

unread,
Jul 19, 2024, 10:45:39 AM7/19/24
to vim...@googlegroups.com
patch 9.1.0603: filetype: use correct extension for Dracula

Commit: https://github.com/vim/vim/commit/5fb801a74faaf3ef1262c2988b8801500ca71646
Author: Evgeni Chasnovski <evgeni.c...@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.c...@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,
/**/
Reply all
Reply to author
Forward
0 new messages