mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
e41368f3bc
commit
2a24d0a435
@ -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',
|
||||
|
@ -226,7 +226,7 @@ func s:GetFilenameChecks() abort
|
||||
\ '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'],
|
||||
|
Loading…
Reference in New Issue
Block a user