Fix detection of racket filetype, closes #720

This commit is contained in:
Adam Stankiewicz
2021-06-04 10:07:53 +02:00
parent b99ce6173f
commit c312d30231
4 changed files with 5 additions and 3 deletions

View File

@@ -604,7 +604,7 @@ if !has_key(g:polyglot_is_disabled, 'screen')
endif endif
if !has_key(g:polyglot_is_disabled, 'scheme') if !has_key(g:polyglot_is_disabled, 'scheme')
au BufNewFile,BufRead *.rkt,*.scm,*.ss setf scheme au BufNewFile,BufRead *.scm,*.ss setf scheme
endif endif
if !has_key(g:polyglot_is_disabled, 'catalog') if !has_key(g:polyglot_is_disabled, 'catalog')

View File

@@ -470,7 +470,7 @@ let s:globs = {
\ 'sather': '*.sa', \ 'sather': '*.sa',
\ 'sbt': '*.sbt', \ 'sbt': '*.sbt',
\ 'scala': '*.scala,*.kojo,*.sc', \ 'scala': '*.scala,*.kojo,*.sc',
\ 'scheme': '*.scm,*.ss,*.rkt', \ 'scheme': '*.scm,*.ss',
\ 'scilab': '*.sci,*.sce', \ 'scilab': '*.sci,*.sce',
\ 'screen': '.screenrc,screenrc', \ 'screen': '.screenrc,screenrc',
\ 'scss': '*.scss', \ 'scss': '*.scss',

View File

@@ -4585,7 +4585,7 @@ glob: "**/scheme.vim"
filetypes: filetypes:
- name: scheme - name: scheme
patterns: patterns:
- pattern: "*.scm,*.ss,*.rkt" - pattern: "*.scm,*.ss"
description: Scheme description: Scheme
--- ---
name: screen name: screen

View File

@@ -391,4 +391,6 @@ call TestExtension("conf", "auto.master", "")
" https://github.com/sheerun/vim-polyglot/issues/579 " https://github.com/sheerun/vim-polyglot/issues/579
call TestExtension("dart", "reminders.dart", "") call TestExtension("dart", "reminders.dart", "")
call TestExtension("racket", "empty.rkt", "")
filetype off filetype off