mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
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:
parent
f83d8ea279
commit
571b50be16
@ -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',
|
||||
|
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user