vim-patch:9.0.1409: racket files are recognized as scheme

Problem:    Racket files are recognized as scheme.
Solution:   Recognize rackets files separately. (Gabriel Kakizaki,
            closes vim/vim#12164, closes vim/vim#12162)

d11ac403db

Co-authored-by: Gabriel Kakizaki <gkakizaki@gmail.com>
This commit is contained in:
Christian Clason 2023-03-17 09:42:33 +01:00
parent f83d8ea279
commit 571b50be16
2 changed files with 5 additions and 4 deletions

View File

@ -838,6 +838,9 @@ local extension = {
R = function(path, bufnr)
return require('vim.filetype.detect').r(bufnr)
end,
rkt = 'racket',
rktd = 'racket',
rktl = 'racket',
rad = 'radiance',
mat = 'radiance',
['pod6'] = 'raku',
@ -910,9 +913,6 @@ local extension = {
ss = 'scheme',
scm = 'scheme',
sld = 'scheme',
rkt = 'scheme',
rktd = 'scheme',
rktl = 'scheme',
sce = 'scilab',
sci = 'scilab',
scss = 'scss',

View File

@ -476,6 +476,7 @@ let s:filename_checks = {
\ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'],
\ 'quarto': ['file.qmd'],
\ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'],
\ 'racket': ['file.rkt', 'file.rktd', 'file.rktl'],
\ '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'],
@ -514,7 +515,7 @@ let s:filename_checks = {
\ 'sather': ['file.sa'],
\ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala'],
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.rkt', 'file.rktd', 'file.rktl'],
\ 'scheme': ['file.scm', 'file.ss', 'file.sld'],
\ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'],
\ 'scss': ['file.scss'],