Merge pull request #22699 from clason/vim-9.0.1406

vim-patch:9.0.{1406,1407,1408,1409}: some files are not recognized
This commit is contained in:
Christian Clason
2023-03-17 13:40:15 +01:00
committed by GitHub
2 changed files with 12 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',
@@ -883,6 +886,8 @@ local extension = {
ron = 'ron',
rsc = 'routeros',
x = 'rpcgen',
rpgle = 'rpgle',
rpgleinc = 'rpgle',
rpl = 'rpl',
Srst = 'rrst',
srst = 'rrst',
@@ -908,9 +913,6 @@ local extension = {
ss = 'scheme',
scm = 'scheme',
sld = 'scheme',
rkt = 'scheme',
rktd = 'scheme',
rktl = 'scheme',
sce = 'scilab',
sci = 'scilab',
scss = 'scss',
@@ -1016,6 +1018,7 @@ local extension = {
swift = 'swift',
svh = 'systemverilog',
sv = 'systemverilog',
td = 'tablegen',
tak = 'tak',
tal = 'tal',
task = 'taskedit',
@@ -1590,6 +1593,7 @@ local filename = {
['.pythonstartup'] = 'python',
['.pythonrc'] = 'python',
SConstruct = 'python',
qmldir = 'qmldir',
['.Rprofile'] = 'r',
['Rprofile'] = 'r',
['Rprofile.site'] = 'r',

View File

@@ -472,9 +472,11 @@ let s:filename_checks = {
\ 'pyrex': ['file.pyx', 'file.pxd'],
\ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'],
\ 'ql': ['file.ql', 'file.qll'],
\ 'qmldir': ['qmldir'],
\ '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'],
@@ -495,6 +497,7 @@ let s:filename_checks = {
\ 'rnc': ['file.rnc'],
\ 'rng': ['file.rng'],
\ 'rnoweb': ['file.rnw', 'file.snw'],
\ 'rpgle': ['file.rpgle', 'file.rpgleinc'],
\ 'robot': ['file.robot', 'file.resource'],
\ 'robots': ['robots.txt'],
\ 'ron': ['file.ron'],
@@ -512,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'],
@@ -587,6 +590,7 @@ let s:filename_checks = {
\ 'taskdata': ['pending.data', 'completed.data', 'undo.data'],
\ 'taskedit': ['file.task'],
\ 'tcl': ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc'],
\ 'tablegen': ['file.td'],
\ 'teal': ['file.tl'],
\ 'template': ['file.tmpl'],
\ 'teraterm': ['file.ttl'],