Skip to content

Commit d11ac40

Browse files
kakigbrammool
authored andcommitted
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)
1 parent 1505bef commit d11ac40

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

runtime/filetype.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,9 @@ au BufRead,BufNewFile qmldir setf qmldir
16551655
" Quarto
16561656
au BufRead,BufNewFile *.qmd setf quarto
16571657

1658+
" Racket (formerly detected as "scheme")
1659+
au BufNewFile,BufRead *.rkt,*.rktd,*.rktl setf racket
1660+
16581661
" Radiance
16591662
au BufNewFile,BufRead *.rad,*.mat setf radiance
16601663

@@ -1922,8 +1925,8 @@ au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks setf zsh
19221925
au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh
19231926
au BufNewFile,BufRead *.zsh setf zsh
19241927

1925-
" Scheme
1926-
au BufNewFile,BufRead *.scm,*.ss,*.sld,*.rkt,*.rktd,*.rktl setf scheme
1928+
" Scheme ("racket" patterns are now separate, see above)
1929+
au BufNewFile,BufRead *.scm,*.ss,*.sld setf scheme
19271930

19281931
" Screen RC
19291932
au BufNewFile,BufRead .screenrc,screenrc setf screen

src/testdir/test_filetype.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ let s:filename_checks = {
475475
\ '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'],
476476
\ 'quarto': ['file.qmd'],
477477
\ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'],
478+
\ 'racket': ['file.rkt', 'file.rktd', 'file.rktl'],
478479
\ 'radiance': ['file.rad', 'file.mat'],
479480
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
480481
\ 'raml': ['file.raml'],
@@ -513,7 +514,7 @@ let s:filename_checks = {
513514
\ 'sather': ['file.sa'],
514515
\ 'sbt': ['file.sbt'],
515516
\ 'scala': ['file.scala'],
516-
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.rkt', 'file.rktd', 'file.rktl'],
517+
\ 'scheme': ['file.scm', 'file.ss', 'file.sld'],
517518
\ 'scilab': ['file.sci', 'file.sce'],
518519
\ 'screen': ['.screenrc', 'screenrc'],
519520
\ 'scss': ['file.scss'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1409,
698700
/**/
699701
1408,
700702
/**/

0 commit comments

Comments
 (0)