mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user