diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-07-19 16:56:41 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-07-19 17:28:48 +0200 |
commit | 2a24d0a4357d24d6edbd454ab2465abf460467db (patch) | |
tree | 5af2866ca70b9dfce5c5c2e6580eb2f8fd809b37 /runtime/lua/vim | |
parent | e41368f3bc1d08d900425608bd199f585d6fce59 (diff) | |
download | rneovim-2a24d0a4357d24d6edbd454ab2465abf460467db.tar.gz rneovim-2a24d0a4357d24d6edbd454ab2465abf460467db.tar.bz2 rneovim-2a24d0a4357d24d6edbd454ab2465abf460467db.zip |
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 <evgeni.chasnovski@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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', |