vim-patch:9.0.{1419,1421,1422,1423}: some files are not recognized (#22749)

vim-patch:9.0.1419: Lean files are not recognized

Problem:    Lean files are not recognized.
Solution:   Add a pattern for Lean files. (Amaan Qureshi, closes vim/vim#12177)

4a5c39fc52

vim-patch:9.0.1421: Nu files are not recognized

Problem:    Nu files are not recognized.
Solution:   Add a pattern for Nu files. (Amaan Qureshi, closes vim/vim#12172)

8aa2a37f89

vim-patch:9.0.1422: Sage files are not recognized

Problem:    Sage files are not recognized.
Solution:   Add a pattern for Sage files. (Amaan Qureshi, closes vim/vim#12176)

d0639d717b

vim-patch:9.0.1423: WebAssembly Interface Type files are not recognized

Problem:    WebAssembly Interface Type files are not recognized.
Solution:   Add a pattern for WIT files. (Amaan Qureshi, closes vim/vim#12173)

890c772036
This commit is contained in:
Amaan Qureshi
2023-03-22 04:19:56 -04:00
committed by GitHub
parent a7b537c7a4
commit 48ce2ef912
2 changed files with 9 additions and 0 deletions

View File

@@ -593,6 +593,7 @@ local extension = {
lte = 'latte', lte = 'latte',
ld = 'ld', ld = 'ld',
ldif = 'ldif', ldif = 'ldif',
lean = 'lean',
journal = 'ledger', journal = 'ledger',
ldg = 'ledger', ldg = 'ledger',
ledger = 'ledger', ledger = 'ledger',
@@ -908,6 +909,7 @@ local extension = {
builder = 'ruby', builder = 'ruby',
rake = 'ruby', rake = 'ruby',
rs = 'rust', rs = 'rust',
sage = 'sage',
sas = 'sas', sas = 'sas',
sass = 'sass', sass = 'sass',
sa = 'sather', sa = 'sather',
@@ -1106,6 +1108,7 @@ local extension = {
wdl = 'wdl', wdl = 'wdl',
wm = 'webmacro', wm = 'webmacro',
wbt = 'winbatch', wbt = 'winbatch',
wit = 'wit',
wml = 'wml', wml = 'wml',
wsml = 'wsml', wsml = 'wsml',
ad = 'xdefaults', ad = 'xdefaults',
@@ -1543,6 +1546,8 @@ local filename = {
NEWS = function(path, bufnr) NEWS = function(path, bufnr)
return require('vim.filetype.detect').news(bufnr) return require('vim.filetype.detect').news(bufnr)
end, end,
['env.nu'] = 'nu',
['config.nu'] = 'nu',
['.ocamlinit'] = 'ocaml', ['.ocamlinit'] = 'ocaml',
['.octaverc'] = 'octave', ['.octaverc'] = 'octave',
octaverc = 'octave', octaverc = 'octave',

View File

@@ -322,6 +322,7 @@ let s:filename_checks = {
\ 'latte': ['file.latte', 'file.lte'], \ 'latte': ['file.latte', 'file.lte'],
\ 'ld': ['file.ld'], \ 'ld': ['file.ld'],
\ 'ldif': ['file.ldif'], \ 'ldif': ['file.ldif'],
\ 'lean': ['file.lean'],
\ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'], \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'],
\ 'less': ['file.less'], \ 'less': ['file.less'],
\ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'], \ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'],
@@ -412,6 +413,7 @@ let s:filename_checks = {
\ 'nqc': ['file.nqc'], \ 'nqc': ['file.nqc'],
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
\ 'nsis': ['file.nsi', 'file.nsh'], \ 'nsis': ['file.nsi', 'file.nsh'],
\ 'nu': ['env.nu', 'config.nu'],
\ 'obj': ['file.obj'], \ 'obj': ['file.obj'],
\ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'], \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
\ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'], \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
@@ -539,6 +541,7 @@ let s:filename_checks = {
\ 'skill': ['file.il', 'file.ils', 'file.cdf'], \ 'skill': ['file.il', 'file.ils', 'file.cdf'],
\ 'cdc': ['file.cdc'], \ 'cdc': ['file.cdc'],
\ 'slang': ['file.sl'], \ 'slang': ['file.sl'],
\ 'sage': ['file.sage'],
\ 'slice': ['file.ice'], \ 'slice': ['file.ice'],
\ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'],
\ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'],
@@ -661,6 +664,7 @@ let s:filename_checks = {
\ 'wget': ['.wgetrc', 'wgetrc'], \ 'wget': ['.wgetrc', 'wgetrc'],
\ 'wget2': ['.wget2rc', 'wget2rc'], \ 'wget2': ['.wget2rc', 'wget2rc'],
\ 'winbatch': ['file.wbt'], \ 'winbatch': ['file.wbt'],
\ 'wit': ['file.wit'],
\ 'wml': ['file.wml'], \ 'wml': ['file.wml'],
\ 'wsh': ['file.wsf', 'file.wsc'], \ 'wsh': ['file.wsf', 'file.wsc'],
\ 'wsml': ['file.wsml'], \ 'wsml': ['file.wsml'],