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: vim/vim#15303

5fb801a74f

Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
This commit is contained in:
Christian Clason
2024-07-19 16:56:41 +02:00
parent e41368f3bc
commit 2a24d0a435
2 changed files with 3 additions and 3 deletions

View File

@@ -377,6 +377,8 @@ local extension = {
gv = 'dot',
drac = 'dracula',
drc = 'dracula',
lvs = 'dracula',
lpe = 'dracula',
dsp = detect.dsp,
dtd = 'dtd',
d = detect.dtrace,
@@ -2198,8 +2200,6 @@ local pattern = {
['^cvs%d+$'] = 'cvs',
['%.[Dd][Aa][Tt]$'] = detect.dat,
['^php%.ini%-'] = 'dosini',
['lpe$'] = 'dracula',
['lvs$'] = 'dracula',
['^drac%.'] = starsetf('dracula'),
['/dtrace/.*%.d$'] = 'dtrace',
['esmtprc$'] = 'esmtprc',