vim-patch:9.1.0738: filetype: rapid files are not recognized

Problem:  filetype: rapid files are not recognized
Solution: detect '*.sysx' and '*.modx' as rapid filetype
          (KnoP-01)

closes: vim/vim#15669

fdcb08264d

Co-authored-by: KnoP-01 <knosowski@graeffrobotics.de>
This commit is contained in:
zeertzjq 2024-09-21 20:21:15 +08:00
parent 881a58787d
commit d28be6fe69
2 changed files with 11 additions and 0 deletions

View File

@ -967,6 +967,16 @@ local extension = {
t6 = 'raku',
p6 = 'raku',
raml = 'raml',
sysx = 'rapid',
sysX = 'rapid',
Sysx = 'rapid',
SysX = 'rapid',
SYSX = 'rapid',
modx = 'rapid',
modX = 'rapid',
Modx = 'rapid',
ModX = 'rapid',
MODX = 'rapid',
rasi = 'rasi',
rbs = 'rbs',
rego = 'rego',

View File

@ -601,6 +601,7 @@ func s:GetFilenameChecks() abort
\ 'radiance': ['file.rad', 'file.mat'],
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
\ 'raml': ['file.raml'],
\ 'rapid': ['file.sysx', 'file.Sysx', 'file.SysX', 'file.SYSx', 'file.SYSX', 'file.modx', 'file.Modx', 'file.ModX', 'file.MODx', 'file.MODX'],
\ 'rasi': ['file.rasi'],
\ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'],
\ 'rbs': ['file.rbs'],