1
0
forked from aniani/vim

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.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Evgeni Chasnovski
2024-07-19 15:59:29 +02:00
committed by Christian Brabandt
parent 37853b7de3
commit 5fb801a74f
3 changed files with 4 additions and 2 deletions

View File

@@ -713,7 +713,7 @@ if has("fname_case")
endif endif
" Dracula " Dracula
au BufNewFile,BufRead *.drac,*.drc,*lvs,*lpe setf dracula au BufNewFile,BufRead *.drac,*.drc,*.lvs,*.lpe setf dracula
" Datascript " Datascript
au BufNewFile,BufRead *.ds setf datascript au BufNewFile,BufRead *.ds setf datascript

View File

@@ -225,7 +225,7 @@ def s:GetFilenameChecks(): dict<list<string>>
'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf', 'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf',
'any/.local/share/flatpak/repo/config', '.notmuch-config'], 'any/.local/share/flatpak/repo/config', '.notmuch-config'],
dot: ['file.dot', 'file.gv'], 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'], dtd: ['file.dtd'],
dtrace: ['/usr/lib/dtrace/io.d'], dtrace: ['/usr/lib/dtrace/io.d'],
dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap'], dts: ['file.dts', 'file.dtsi', 'file.dtso', 'file.its', 'file.keymap'],

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
603,
/**/ /**/
602, 602,
/**/ /**/