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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

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

View File

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