0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

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 #12164, closes #12162)
This commit is contained in:
Gabriel Kakizaki
2023-03-16 20:13:29 +00:00
committed by Bram Moolenaar
parent 1505bef5c4
commit d11ac403db
3 changed files with 9 additions and 3 deletions

View File

@@ -1655,6 +1655,9 @@ au BufRead,BufNewFile qmldir setf qmldir
" Quarto " Quarto
au BufRead,BufNewFile *.qmd setf quarto au BufRead,BufNewFile *.qmd setf quarto
" Racket (formerly detected as "scheme")
au BufNewFile,BufRead *.rkt,*.rktd,*.rktl setf racket
" Radiance " Radiance
au BufNewFile,BufRead *.rad,*.mat setf radiance au BufNewFile,BufRead *.rad,*.mat setf radiance
@@ -1922,8 +1925,8 @@ au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks setf zsh
au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh
au BufNewFile,BufRead *.zsh setf zsh au BufNewFile,BufRead *.zsh setf zsh
" Scheme " Scheme ("racket" patterns are now separate, see above)
au BufNewFile,BufRead *.scm,*.ss,*.sld,*.rkt,*.rktd,*.rktl setf scheme au BufNewFile,BufRead *.scm,*.ss,*.sld setf scheme
" Screen RC " Screen RC
au BufNewFile,BufRead .screenrc,screenrc setf screen au BufNewFile,BufRead .screenrc,screenrc setf screen

View File

@@ -475,6 +475,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'], \ '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'], \ 'quarto': ['file.qmd'],
\ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'], \ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'],
\ 'racket': ['file.rkt', 'file.rktd', 'file.rktl'],
\ 'radiance': ['file.rad', 'file.mat'], \ 'radiance': ['file.rad', 'file.mat'],
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'], \ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
\ 'raml': ['file.raml'], \ 'raml': ['file.raml'],
@@ -513,7 +514,7 @@ let s:filename_checks = {
\ 'sather': ['file.sa'], \ 'sather': ['file.sa'],
\ 'sbt': ['file.sbt'], \ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala'], \ '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'], \ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'], \ 'screen': ['.screenrc', 'screenrc'],
\ 'scss': ['file.scss'], \ 'scss': ['file.scss'],

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1409,
/**/ /**/
1408, 1408,
/**/ /**/