From 2a24d0a4357d24d6edbd454ab2465abf460467db Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 19 Jul 2024 16:56:41 +0200 Subject: 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 https://github.com/vim/vim/commit/5fb801a74faaf3ef1262c2988b8801500ca71646 Co-authored-by: Evgeni Chasnovski --- runtime/lua/vim/filetype.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index b497485b53..ea4fa4d2a2 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', -- cgit